PHP_CURL以指定IP发起请求。

配置 CURLOPT_INTERFACE 为指定的Interface。

curl_setopt($ch, CURLOPT_INTERFACE, $ougoingInterface);

http://php.net/manual/en/function.curl-setopt.php

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>