Chrome :
- In the Network panel of devtools, right-click and select Copy as cURL
- Paste / Edit the request, and then send it from a terminal, assuming you have the
curl
command
One way to do that in Chrome could be to copy the request as cURL in the Network panel of the developer tools, and to replay it with your edits in a terminal, assuming you have the curl
command. See capture :
Alternatively, and in case you need to send the request in the context of a webpage, select "Copy as fetch" and edit-send the content from the javascript console panel.
Firefox :
Firefox has that embedded. You can do your editsallows to edit and resend the XHR right from the Network panel. Capture below is taken from Firefox 36 :