【发布时间】:2014-04-15 21:58:43
【问题描述】:
我有一个可以通过 GET 请求获取的页面。
该请求的响应是一个 html 页面,其中有一个名为 Search 的按钮
当我调用该按钮时,会触发一个发布请求并获取附加到页面的响应。换句话说,点击那个按钮并没有给我一个全新的页面,而是给那个页面添加了新的内容。
我尝试使用Live HTTP headers firefox 扩展来读取请求,以便查看在发布请求中发送的参数。这就是我得到的
POST /plugins/ad/buy.php?q=used+cars+dubai HTTP/1.1
Host: www.autodealer.ae
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://www.autodealer.ae/plugins/ad/buy.php?q=used+cars+dubai
Cookie: PHPSESSID=f2072a947619ef2d61b552f38e163d02; __utma=154876456.960352407.1397595567.1397595567.1397598041.2; __utmc=154876456; __utmz=154876456.1397595567.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __gads=ID=7a5bda3c29913b41:T=1397595570:S=ALNI_MZg2J44DRK3D1j8CX4FpZWFHWIzuw; __utmb=154876456.1.10.1397598041
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 131
vehcategory=All&make=All&model=&platename=&pricefrom=%3C500&priceto=All&city=All&sort=postdate&results_listing=1MONTH&Search=Search
我在 StackOverFlow 网站上阅读了很多问题,并且了解到 post 参数在请求正文中退出。在我的情况下,内容类型是application/x-www-form-urlencoded,所以帖子参数应该是query string
我的问题
上述请求中的post参数在哪里?我只能看到cookies
【问题讨论】:
标签: http post http-post httprequest