curl用于访问目标网页,目标网页会判断IP,对IP有限制数,比如一个IP只能同时访问1次啥的。
所以想指定IP出口,通过不同的出口就能办到用不同的IP同时访问。
我知道用fsockopen可以办到,但不知道怎么用curl办到。。。
所以想指定IP出口,通过不同的出口就能办到用不同的IP同时访问。
我知道用fsockopen可以办到,但不知道怎么用curl办到。。。
1
leecade May 25, 2014
http_proxy=http://192.1.1.1 curl ...
这样? |
2
47jm9ozp May 25, 2014 CURLOPT_INTERFACE
The name of the outgoing network interface to use. This can be an interface name, an IP address or a host name. curl_setopt($handle, CURLOPT_INTERFACE,"127.0.0.1" ); |
3
yanyuechuixue OP @leecade 肯定不是的吧!!!!
|
4
yanyuechuixue OP @ooxxcc 谢谢~~~
|
5
hanguoshuai Mar 5, 2020
@ooxxcc 专门注册账号,等待两小时,道声谢谢!
|