Skip to content

Instantly share code, notes, and snippets.

@adamyanalunas
Created October 23, 2013 00:04
Show Gist options
  • Save adamyanalunas/7110318 to your computer and use it in GitHub Desktop.
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
# 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