"Copy location with parameters" for Google Chrome Developer Tools?
Asked Answered
J

4

8

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.

Jacquenette answered 29/1, 2012 at 22:41 Comment(1)
I've been wondering the same thing. Did you find a solution?Threadfin
J
3

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)

Jacquenette answered 14/10, 2015 at 21:34 Comment(0)
N
0

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.

Newtonnext answered 22/4, 2013 at 4:23 Comment(0)
C
0

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

Communal answered 15/7, 2014 at 11:18 Comment(0)
C
0

copy paste this code in Inspent Element Console to GET AJAX information...

var ajaxArgs = [];
(function($){
    // backup ajax request
    $.ajaxBefore = $.ajax;
    // rewrite ajax function 
    $.ajax = function (a){ajaxArgs.push(a); return $.ajaxBefore(a)}
})(typeof jQuery == 'undefined' ? $ :  jQuery );

After Ajax Send Requeest You Can type ajaxArgs or console.log(ajaxArgs); in Inspect Element to See All Args.. Good Luck and Use it for Good reason

Cathay answered 6/12, 2023 at 14:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.