how to send POST HTTP request from Google Chrome without any extensions?

20,449

Solution 1

You can do the post and get in the same way as the browser does. You can use the header to put in information in key, value pair. Here is a tutorial on how you can do it - Send POST data using XMLHttpRequest

But it would be better if you use chrome extension POSTMAN which is very extensive and clean for testing REST services.

Solution 2

I think, using the URL bar will always result in a GET.

To send POST requests from a browser, set up an HTML <form> with method="POST", use the action attribute for the REST-URL and input tags for other parameters.

Share:
20,449
Chandra Shekhar
Author by

Chandra Shekhar

Enthusiast in problem solving

Updated on September 07, 2020

Comments

  • Chandra Shekhar
    Chandra Shekhar over 3 years

    Can we send POST HTTP requests in Google Chrome when using Rest Services? I have tried few extensions but I need directly from Chrome browser