Skip to content

Instantly share code, notes, and snippets.

@djoreilly
Last active December 15, 2015 05:29
Show Gist options
  • Save djoreilly/5209062 to your computer and use it in GitHub Desktop.
Save djoreilly/5209062 to your computer and use it in GitHub Desktop.
$ python start_app.py
serving on http://127.0.0.1:8080
$ python do_get.py wrong-token
HTTP Error 403: Forbidden
$ py do_get.py open-sesame
Hello, welcome to paste
$ curl -H "X-Auth-Token:open-sesame" http://127.0.0.1:8080
Hello, welcome to paste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment