用抓包工具抓包如下,在delphi中怎么用indy中的idhttp進行post呢?
POST /ajaxpro/pindaotemp_taskpage,App_Web_axa0ruzl.ashx HTTP/1.1
Host: ylg.tp999.net
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: text/plain; charset=utf-8
X-AjaxPro-Method: seeitok
Referer: http://ylg.tp999.net/pindaotemp_taskpage.aspx?guid=1fb50f1a-5650-422f-8501-86b1a268d477&top_session=ffd071a2-bc62-4096-9861-dc63e8c3bed1
Content-Length: 150
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
{"wangzhi":"http://ylg.tp999.net/pindaotemp_taskpage.aspx?guid=1fb50f1a-5650-422f-8501-86b1a268d477&top_session=ffd071a2-bc62-4096-9861-dc63e8c3bed1"}
uj5u.com熱心網友回復:
idht.Request.SetHeaders;idht.Request.CustomHeaders.Clear;
idht.Request.CustomHeaders.Add('......');
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/131880.html
標籤:網絡通信/分布式開發
上一篇:求幫忙,把一個DATA格式的檔案讀進來寫成txt格式的,謝謝了!,坐等
下一篇:使用 indy 的疑惑
