Created
February 24, 2018 01:36
-
-
Save rezamt/a4ea4be98475d9272444b4e54859aeeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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