php curl使用代理发起请求
以下是代码实测可用,使用的时候记得自己去找可用的ip和端口
<?php
$requestUrl = 'http://www.baidu.com';
$type = 'http';
$cUrl = curl_init();
curl_setopt($cUrl, CURLOPT_URL, $requestUrl);
curl_setopt($cUrl, CURLOPT_RETURNTRANSF
原创
2012-08-31 11:00:54 ·
6272 阅读 ·
0 评论