how to send a post request with a web browser [dup

2019-01-17 09:41发布

问题:

This question already has an answer here:

  • How do I manually fire HTTP POST requests with Firefox or Chrome? [closed] 12 answers

how to send a post request with a web browser?

回答1:

with a form, just set method to "post"

<form action="blah.php" method="post">
  <input type="text" name="data" value="mydata" />
  <input type="submit" />
</form>


回答2:

You can create an html page with a form, having method="post" and action="yourdesiredurl" and open it with your browser.

As an alternative, there are some browser plugins for developers that allow you to do that, like Web Developer Toolbar for Firefox