Skip to content

Instantly share code, notes, and snippets.

@alesegdia
Created November 20, 2014 14:49
Show Gist options
  • Save alesegdia/a3a810548ebda5ee372b to your computer and use it in GitHub Desktop.
Save alesegdia/a3a810548ebda5ee372b to your computer and use it in GitHub Desktop.
Using python request with curl.
# python
somevar = request.META.get('HTTP_AUTH', None)
# curl
curl -H 'AUTH:1234' http://127.0.0.1:8000/some/url/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment