开发者

How can I send a POST request with a web browser? [duplicate]

开发者 https://www.devze.com 2023-01-08 14:46 出处:网络
This question already has answers here: 开发者_C百科 How to manually send HTTP POST requests from Firefox or Chrome browser
This question already has answers here: 开发者_C百科 How to manually send HTTP POST requests from Firefox or Chrome browser (18 answers) Closed 7 years ago.

How can I send a POST request with a web browser?


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>


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消