81

Im switching from firebug to Google Chrome developer tools. I like it so far, but one feature that I really missing is replaying a http post.

on firebug, I can right click on the request (on the net or console tab), "open in new tab" and replay that request. When I try the same thing on google chrome, it did not sent it as POST instead as a GET so the parameter did not sent to the server

Is there any way i can do this in chrome?

ahmy
  • 4,095
  • 4
  • 27
  • 36

7 Answers7

72

Update:

Yes, it is possible in the latest version of Google Chrome.
Just right click on the request and select Replay XHR.

Another way as others pointed out is to:

  1. Right click request > "Copy" > "Copy ss curl". Paste it to shell. or
  2. Right click request > "Copy" > "Copy as fetch". Paste it to the console tab

There's currently no way to do this, but please star this bug to track progress on this front.

pbaranski
  • 22,778
  • 19
  • 100
  • 117
Boris Smus
  • 8,220
  • 2
  • 36
  • 33
26

My favorite way is to right click on the POST request and Copy as fetch option (see attached image). I can then paste that into the console as Javascript to alter the request if needed and re-run it.

enter image description here

Marquez
  • 5,891
  • 3
  • 31
  • 40
14

"Replay XHR" in Chrome only can replay, if you want to modify the post request you should use firefox and Live HTTP Headers addon.

diyism
  • 12,477
  • 5
  • 46
  • 46
  • there are addons for Chrome as well that allow you to edit headers (though maybe not at the time of writing of the answer). – jwenting Sep 01 '16 at 13:37
  • as of 2021 works in regular Chrome - checked in Version 96.0.4664.45 (Official Build) (64-bit) – Sasha Bond Nov 24 '21 at 17:07
5

As of right now (09/20/2012) this feature is available in the bleeding edge version of Chrome called Chrome Canary. Simply right click on the xhr request in the network panel and select "Replay XHR".

It's still not quite as useful as the Firebug "open in new tab" if you are returning HTML formatted debug information.

Luke The Obscure
  • 1,524
  • 2
  • 20
  • 35
  • available in Chrome Version 96.0.4664.45 (Official Build) (64-bit) - copy as fetch, change data, post - all works – Sasha Bond Nov 24 '21 at 17:06
2

Chrome supports "Replay XHR" already, also installing a browser plugin definitely helps you if you want to modify the request. But another more flexible way is right click on the request, choose "copy -> copy as cURL", then paste the curl request to your command line terminal. Then you can modify the request however you like.

Dichen
  • 358
  • 1
  • 2
  • 12
1

On chrome I couldn't find replay for no XHR requests, but on Firefox i found the option to resend POST requests.

enter image description here

Luan Cardoso
  • 191
  • 1
  • 2
  • 10
0

If you want to modify the post request you can use Tamper Chrome (extension)

Roman
  • 1,336
  • 15
  • 17