Categories
Miscellaneous

Edit and resend HTTP POST in a browser

Recently I’ve encountered a challenge to make a series of HTTP POST requests with different parameters. This has forced me to look for existing tooling in the marketplace; the features I am looking for are getting POST request,  editing the request and resending it. What I’ve found useful for this is the FireFox browser + dev tools […]

Recently I’ve encountered a challenge to make a series of HTTP POST requests with different parameters. This has forced me to look for existing tooling in the marketplace; the features I am looking for are getting POST request,  editing the request and resending it. What I’ve found useful for this is the FireFox browser + dev tools – really quick and usable for this purpose. All other methods are either not full stack (only resend without edit) or require much soft to plug in.

How to enable FireFox + dev. tools (not Firebug)

To enable dev. tools in FF press F12 or Ctrl+Shift+I (Windows, Linux) and Cmd + Opt + I (macOS).

The Firefox dev. tools even allow to change request type (ex. GET to POST) and resend:

After clicking Edit and Resend button the following areas are open for your editing:

  • Request type (POST, GET and other)
  • Request URL
  • Request Headers
  • Request Body

Now if you just click Send button, the browser will perform the new request.

CSRF protection limitation

This FF function works very well. The only notice is that e-commerce sites use csrf_token protection to prevent unauthorized POST requests, so this makes the repetitive requests with the same/{former request} csrf_token forbidden by a server.

2 replies on “Edit and resend HTTP POST in a browser”

I have one query, if I have username and password of a website. Is it possible to pass csrf token using python requests library.
Thanks
Pawan

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.