To see the content POST data trasferred by jQuery

只谈情不闲聊 提交于 2019-12-30 04:06:32

问题


How can you see what the attribute rel contains when it is transferred by POST?

I transfer a variable by the rel attribute by jQuery. I would like to know what the attribute, $_POST['answer'], contains.

This question is based on: To make an action based on the link location by jQuery

jQuery IRC tells me that the solution seems to be Firebug somehow. How can you see POST data in Firebug?


回答1:


You can use the Network tab and look at the params tab as shown below (this was a get request to google where I search for the word hello).


(source: gyazo.com)




回答2:


There are various tools you can use to capture such information. I use a plugin for Firefox called Live HTTP Headers, which lets you view the HTTP headers that are being transferred in each request, so you would be able to view your post variable.

Firebug can also be used, it is also a plugin available for Firefox. Select the Net tab, then select All. Here you will see a list of all requests. Now you can expand each request to view the headers (and hence the post variables).



来源:https://stackoverflow.com/questions/1350779/to-see-the-content-post-data-trasferred-by-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!