Chandra Shekhar
Chandra Shekhar

Reputation: 664

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

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

Upvotes: 7

Views: 33060

Answers (2)

Dev Utkarsh
Dev Utkarsh

Reputation: 1496

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.

Upvotes: 2

andreas
andreas

Reputation: 21

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.

Upvotes: 2

Related Questions