cURL.
I recommend using this command-line tool for the following reasons:
Here's an example of curl command:
curl http://httpbin.org/post --data "some-data" -v
together with HTTP Request sent:
* Hostname was NOT found in DNS cache
* Trying 23.21.245.14...
* Connected to httpbin.org (23.21.245.14) port 80 (#0)
> POST /post HTTP/1.1
> User-Agent: curl/7.37.1
> Host: httpbin.org
> Accept: */*
> Content-Length: 9
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 9 out of 9 bytes
and HTTP Response received:
< HTTP/1.1 200 OK
< Connection: keep-alive
* Server gunicorn/19.7.1 is not blacklisted
< Server: gunicorn/19.7.1
< Date: Tue, 02 May 2017 12:39:15 GMT
< Content-Type: application/json
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Credentials: true
< Content-Length: 387
< Via: 1.1 vegur
<
{
"args": {},
"data": "",
"files": {},
"form": {
"some-data": ""
},
"headers": {
"Accept": "*/*",
"Connection": "close",
"Content-Length": "9",
"Content-Type": "application/x-www-form-urlencoded",
"Host": "httpbin.org",
"User-Agent": "curl/7.37.1"
},
"json": null,
"origin": "88.221.209.14",
"url": "http://httpbin.org/post"
}
* Connection #0 to host httpbin.org left intact