idhttp在使用get获取特殊的地址报404异常,但是同样地址在Ie中能打开
idhttp在使用get获取特殊的地址报404错误,但是同样地址在Ie中能打开
如:http://www.vcotton.com/members/randcode,请各位大侠帮忙看看,多谢多谢
------解决方案--------------------
Indy版本的问题
http://bbs.2ccc.com/topic.asp?topicid=325942
------解决方案--------------------
用抓包工具,看看都需要哪些参数,对应着做设置,不是直接get就能管用的
------解决方案--------------------
IE的返回HTTP头部也是404.但还是返回了图片
HTTP Response Header:
HTTP/1.1 404 Not Found
Server: nginx/0.8.46
Date: Wed, 21 Sep 2011 08:18:19 GMT
Content-Type: image/gif
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: VcottonCookie[vcotton_member]=deleted; expires=Tue, 21-Sep-2010 08:18:18 GMT; path=/
Set-Cookie: PHPSESSID=253k1h5fl4c85lp4h09ihf16t6; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
------解决方案--------------------
可能是useragent的问题啊
------解决方案--------------------
您访问的页面不存在!
这是网站返回的自定义的错误网页内容.IdHTTP中把错误屏蔽掉就可以取到内容了.
------解决方案--------------------
楼主,你设置它的redirect什么属性为true看看。
------解决方案--------------------
我也遇到这种情况
try
idHttp.get('');
finally
idHttp.free;
end;
释放用 finally
------解决方案--------------------
试了试5楼的方法,可行
我用的是xe,修改idhttp后,重新编译
替换掉系统原来的IdHTTP.dcu
lib\win32\debug和lib\win32\release
一共两处
如:http://www.vcotton.com/members/randcode,请各位大侠帮忙看看,多谢多谢
------解决方案--------------------
Indy版本的问题
http://bbs.2ccc.com/topic.asp?topicid=325942
------解决方案--------------------
用抓包工具,看看都需要哪些参数,对应着做设置,不是直接get就能管用的
------解决方案--------------------
IE的返回HTTP头部也是404.但还是返回了图片
HTTP Response Header:
HTTP/1.1 404 Not Found
Server: nginx/0.8.46
Date: Wed, 21 Sep 2011 08:18:19 GMT
Content-Type: image/gif
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: VcottonCookie[vcotton_member]=deleted; expires=Tue, 21-Sep-2010 08:18:18 GMT; path=/
Set-Cookie: PHPSESSID=253k1h5fl4c85lp4h09ihf16t6; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
------解决方案--------------------
可能是useragent的问题啊
------解决方案--------------------
您访问的页面不存在!
这是网站返回的自定义的错误网页内容.IdHTTP中把错误屏蔽掉就可以取到内容了.
------解决方案--------------------
楼主,你设置它的redirect什么属性为true看看。
------解决方案--------------------
我也遇到这种情况
try
idHttp.get('');
finally
idHttp.free;
end;
释放用 finally
------解决方案--------------------
试了试5楼的方法,可行
我用的是xe,修改idhttp后,重新编译
替换掉系统原来的IdHTTP.dcu
lib\win32\debug和lib\win32\release
一共两处