Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make http/https POST requests manually? [closed]

I want to test some url's on a small custom server i am working on. i have used Wfetch on windows and its awesome

My requirements for these tests are: - should be able to run on linux(ubuntu) - should be able to set all params manually - should support digest aunthentication

can someone suggest some gui or extension for such a work.

I have already tried RESTclient and Poster but they do not support digest aunthentication.

Possible duplicate of How do I manually fire HTTP POST requests with Firefox or Chrome?

like image 381
neeraj Avatar asked Mar 29 '13 21:03

neeraj


People also ask

Which tool would you use to send a HTTP POST request to a web service?

Postman is a complete toolchain for API development. You can get Postman as a Chrome extension, or download the app here. Postman is open source on Mac, Windows, and Linux.

Why URL is not exposed in post method?

In case of post request, large amount of data can be sent because data is sent in body. 2) Get request is not secured because data is exposed in URL bar. Post request is secured because data is not exposed in URL bar.

How do I make HTTP request in browser?

To make an HTTP call in Ajax, you need to initialize a new XMLHttpRequest() method, specify the URL endpoint and HTTP method (in this case GET). Finally, we use the open() method to tie the HTTP method and URL endpoint together and call the send() method to fire off the request.


1 Answers

wget may help you.

get:

wget http://example.com

post:

wget --post-data "username=Yarkee" http://example.com
like image 88
Yarkee Avatar answered Nov 10 '22 00:11

Yarkee