Q
qingtz
Unregistered / Unconfirmed
GUEST, unregistred user!
我用idhttp访问一个网站的时候出错了,不知道是什么原因,大虾帮忙!
下面是idhttp请求
idhttp.AllowCookies:=true;
idhttp.CookieManager:=form1.Cookman;
idhttp.HandleRedirects:=true;
idhttp.ProxyParams.ProxyServer:='*.*.*.*';
idhttp.ProxyParams.ProxyPort:=80;
idhttp.ProtocolVersion:=pv1_0;
idhttp.Request.Accept:='image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-gsarcade-launch, */*';
idhttp.Request.AcceptLanguage:='zh-cn';
idhttp.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon)';
然后运行程序用截获软件截获发出的数据是
GET http://******.com:80/user/f_klick.php?step=1&id=12219 name= HTTP/1.0
Content-Type: text/html
Proxy-Connection: keep-alive
Host: losegroup.com
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-gsarcade-launch, */*
Accept-Language: zh-cn
Referer: http://******.com/user/f_klick.php?id=12219
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon)
Cookie: pw=******; id=******
收到的数据是
HTTP/1.1 406 Not Acceptable
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html
Proxy-Connection: close
Connection: close
Content-Length: 616
<HTML><HEAD>
<TITLE>Request Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Request Error (unsupported_protocol)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
Your request used a protocol that is not currently supported.
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
为什么 会出现错误呢?我用浏览器浏览的时候发出去的数据数和我用idhttp的一样,为什么收到的就不同了呢?我明明发出的是http1.0协议,为什么收到的是http1.1呢?可是用浏览器收到的却是http1.0的协议?
下面是idhttp请求
idhttp.AllowCookies:=true;
idhttp.CookieManager:=form1.Cookman;
idhttp.HandleRedirects:=true;
idhttp.ProxyParams.ProxyServer:='*.*.*.*';
idhttp.ProxyParams.ProxyPort:=80;
idhttp.ProtocolVersion:=pv1_0;
idhttp.Request.Accept:='image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-gsarcade-launch, */*';
idhttp.Request.AcceptLanguage:='zh-cn';
idhttp.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon)';
然后运行程序用截获软件截获发出的数据是
GET http://******.com:80/user/f_klick.php?step=1&id=12219 name= HTTP/1.0
Content-Type: text/html
Proxy-Connection: keep-alive
Host: losegroup.com
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-gsarcade-launch, */*
Accept-Language: zh-cn
Referer: http://******.com/user/f_klick.php?id=12219
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon)
Cookie: pw=******; id=******
收到的数据是
HTTP/1.1 406 Not Acceptable
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html
Proxy-Connection: close
Connection: close
Content-Length: 616
<HTML><HEAD>
<TITLE>Request Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Request Error (unsupported_protocol)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
Your request used a protocol that is not currently supported.
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
为什么 会出现错误呢?我用浏览器浏览的时候发出去的数据数和我用idhttp的一样,为什么收到的就不同了呢?我明明发出的是http1.0协议,为什么收到的是http1.1呢?可是用浏览器收到的却是http1.0的协议?