Created
October 23, 2013 00:04
-
-
Save adamyanalunas/7110318 to your computer and use it in GitHub Desktop.
Create a local, dummy API server that will dump out any request received
This file contains hidden or 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
# Listen on port 5000 | |
nc -k -l 5000 | |
# Test by posting a JSON file | |
curl -X POST -d @filename.txt http://local.devmachine/path/to/resource --header "Content-Type:application/json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment