php curl使用代理发起请求

如下是代码实测可用,使用的时候记得本身去找可用的ip和端口 <?php $requestUrl = 'http://www.baidu.com'; $type = 'http'; $cUrl = curl_init(); curl_setopt($cUrl, CURLOPT_URL, $requestUrl); curl_setopt($cUrl, CURLOPT_RETURNTRANSFER,
相关文章
相关标签/搜索