brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Edit and Resend in Firefox replays a request with your own changes

Firefox
~/tips/tip-firefox-edit-and-resend

right-click the request > Edit and Resend

Change a header or body and send the request again from the browser.

Testing how a server reacts to a slightly different request does not require rebuilding it in another tool. Firefox can do it right in the Network monitor, which is one reason I keep it around.

Open the Network monitor, let the page make its request, then:

Ctrl+Shift+E (Mac: Cmd+Option+E)
right-click the request > Edit and Resend

An editor opens with the method, URL, headers and body filled in. Change what you want and send it. The new request shows up in the list, so you can click it and read the response next to the original.

For example, take a call to /api/items?page=1, change it to page=9999, and see whether the server returns an empty list or falls over. Or delete the Authorization header to check that you really get a 401.

Plain Resend in the same menu repeats it unchanged.

Remember that this is a real request with your real cookies. Resending a POST or DELETE can create or remove data a second time, so try it on a test system. Some headers are controlled by the browser and may not be sent the way you typed them.

Further reading: Firefox DevTools: network request list

More Firefox tips view-source:https://www.mozilla.org/#line100 ^ invoice history about:processes Windows and Linux: Ctrl+B Inspector > click the "grid" badge All Firefox tips (10) All topics

Link