以下IDHTTP抓包
GET /bill/trade_item_download.php?stock_code=sh600xxx HTTP/1.1
Content-Type: text/html
Host: bill.finance.sina.com.cn
Accept:text/html, */*
User-Agent: Mozilla/3.0 (compatible; Indy Library)
以下IE下载抓包:
GET /bill/trade_item_download.php?stock_code=sh600xxx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg,image/pjpeg, application/x-shockwave-flash, */*
Accept-Language: zh-cn
UA-CPU:x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE7.0; Windows NT5.1)
Host: bill.finance.sina.com.cn
Connection: Keep-Alive
Cookie: ...........
你在idhttp中增加Accept-Language: zh-cn应该就可以了 语言不同估计就会乱码
如果还不行, 按照IE的GET在idhttp中发送一模一样的请求就OK
简单的代码就不用手把手帮你写了吧~~~