Skip to content

Instantly share code, notes, and snippets.

@ahndmal
Created July 14, 2024 08:34
Show Gist options
  • Save ahndmal/d3e35ed86fc909b4b94cafe8e8e670a2 to your computer and use it in GitHub Desktop.
Save ahndmal/d3e35ed86fc909b4b94cafe8e8e670a2 to your computer and use it in GitHub Desktop.
## GET request
GET / HTTP/1.1
User-agent: curl/2000
Host: example.com
## GET response
HTTP/1.1 200 OK
Server: example-server/1.1
Content-Length: 5
Content-Type: plain/text
hello
############################
## POST request
POST / HTTP/1.1
Host: example.com
User-agent: curl/2000
Content-Length: 5
hello
## POST response
HTTP/1.1 200 OK
Server: example-server/1.1
Content-Length: 5
Content-Type: plain/text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment