Skip to content

Instantly share code, notes, and snippets.

@Captain1965
Created February 25, 2022 15:26
Show Gist options
  • Save Captain1965/7ba951d84b2a17d25a86d88f7a2ed269 to your computer and use it in GitHub Desktop.
Save Captain1965/7ba951d84b2a17d25a86d88f7a2ed269 to your computer and use it in GitHub Desktop.
POST HTTP
sony@sony-SVS1513X9RB:~$ nc -C httpbin.org 80
POST /anything HTTP/1.1
Host: httpbin.org
Content-Length: 5
HELLO
HTTP/1.1 200 OK
Date: Fri, 25 Feb 2022 15:22:09 GMT
Content-Type: application/json
Content-Length: 319
Connection: keep-alive
Server: gunicorn/19.9.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
{
"args": {},
"data": "HELLO",
"files": {},
"form": {},
"headers": {
"Content-Length": "5",
"Host": "httpbin.org",
"X-Amzn-Trace-Id": "Root=1-6218f417-4e05772364afbf13107731f5"
},
"json": null,
"method": "POST",
"origin": "46.53.249.53",
"url": "http://httpbin.org/anything"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment