if($this->GetHead("http-edition")=="HTTP/1.1") $httpv = "HTTP/1.1";
else $httpv = "HTTP/1.0";
fputs($this->m_fp,"GET ".$this->m_urlpath." $httpv\r\n");
fputs($this->m_fp,"Host: ".$this->m_host."\r\n");
fputs($this->m_fp,"Accept: */*\r\n");
fputs($this->m_fp,"User-Agent: Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2)\r\n");
//HTTP1.1协议必须指定文档结束后关闭链接,否则读取文档时无法使用feof判断结束
if($httpv=="HTTP/1.1") fputs($this->m_fp,"Connection: Close\r\n\r\n");
else fputs($this->m_fp,"\r\n"); //这个点很重要, 不能少