标签:tac 地址 line repeat nec ola initial family pad
curl_setopt ($ch, CURLOPT_URL, $requestUrl); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC); //代理认证模式 curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1"); //代理服务器地址 curl_setopt($ch, CURLOPT_PROXYPORT, 80); //代理服务器端口 //curl_setopt($ch, CURLOPT_PROXYUSERPWD, ":"); //http代理认证帐号,名称:pwd的格式 curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); //使用http代理模式
http默认端口为:80/tcp
HTTPS服务器,默认的端口号为443/tcp 443/udp;
curl_setopt (
$ch
, CURLOPT_URL,
$requestUrl
);
curl_setopt (
$ch
, CURLOPT_RETURNTRANSFER, 1);
curl_setopt (
$ch
, CURLOPT_CONNECTTIMEOUT,
$timeout
);
curl_setopt(
$ch
, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
//代理认证模式
curl_setopt(
$ch
, CURLOPT_PROXY,
"112.23.451.72"
);
//代理服务器地址
curl_setopt(
$ch
, CURLOPT_PROXYPORT, 80);
//代理服务器端口
//curl_setopt($ch, CURLOPT_PROXYUSERPWD, ":"); //http代理认证帐号,名称:pwd的格式
curl_setopt(
$ch
, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
//使用http代理模式
标签:tac 地址 line repeat nec ola initial family pad
原文地址:https://www.cnblogs.com/burningc/p/8794584.html