function getpage ($sURL)
{
if ($this->proxy_host != '')
{
$request = $sURL;
$host = $this->proxy_host;
$port = $this->proxy_port;
}
else
{
$sInfo = $this->parserequest ($sURL);
$request = $sInfo['request'];
$host = $sInfo['host'];
$port = $sInfo['port'];
}
$cookie5=$this->theCookies.'; custid=';
$httpHeader = 'GET ' . $request . ' HTTP/1.1\r\n
';
$httpHeader = 'Accept: */*\r\n
';
$httpHeader .= 'Referer: ' . $this->referer . '\r\n
';
$httpHeader = 'Accept-Language: zh-cn\r\n
';
$httpHeader = 'Accept-Encoding: gzip, deflate \r\n
';
$httpHeader = 'Connection: Keep-Alive\r\n
';
$httpHeader .= 'Cookie: ' . $cookie5.'\r\n
';
$httpHeader .= 'Host: ' . $host . '\r\n
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 请求 实现 httpHeader host port sInfo request sURL |
注册
个人空间
