Skip to content

Instantly share code, notes, and snippets.

@rezamt
Created February 24, 2018 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rezamt/a4ea4be98475d9272444b4e54859aeeb to your computer and use it in GitHub Desktop.
Save rezamt/a4ea4be98475d9272444b4e54859aeeb to your computer and use it in GitHub Desktop.
# Server Command
echo -e "HTTP/1.1 201 OK\r\n\r\n" | nc -l 8080
# Client Command
echo "firstname=John;lastname=Smith;company=Smith & Sons;id=1234567890;" > req.txt
http --form POST :8080/examplehandler 'content-type: text/plain; Accept: text/plain' < req.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment