“Copy location with parameters” for Google Chrome Developer Tools?

一曲冷凌霜 提交于 2019-12-06 23:32:13

问题


Is there a way in Google Chrome Developer tools to copy an AJAX request with the parameters? Firebug has this feature to "Copy location with parameters" for any async request and it is extremely useful.


回答1:


For those still looking after all these years, Chrome's "Replay XHR" is as close as you get.

Debugger -> Network -> XHR -> right-click on request -> Replay XHR

The output can be seen in "Response" tab when you click on the new replayed request. If someone else finds a way to neatly copy all the post parameters like Firebug, let me know.

(Alternatively, I believe you can also install Firebug for Chrome)




回答2:


In version 26 of google chrome the "copy as cURL" feature was added:

https://coderwall.com/p/-fdgoq

If you are testing GET methods you can just right click on a request in the network tab and click "open in new tab", every time you refresh that tab you will resend the request. Unfortunately you can't resubmit POST requests.




回答3:


When your page gets load perform the following actions:

Right click on the page --> select "Inspect Element" -- > Slect the "Network tab" from the window that gets opened --> you will see all the ajax and jquery calls



来源:https://stackoverflow.com/questions/9057445/copy-location-with-parameters-for-google-chrome-developer-tools

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