Skip to content

Instantly share code, notes, and snippets.

@codecats
Created November 15, 2017 09:25
Show Gist options
  • Save codecats/0f9a75a248f60577aca6dc38e7dc9785 to your computer and use it in GitHub Desktop.
Save codecats/0f9a75a248f60577aca6dc38e7dc9785 to your computer and use it in GitHub Desktop.
DRF auth
curl --header 'Authorization: Basic $(printf %s api_user@user.com:password123 | base64)' http://cos.xyz/url/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment