Skip to content

Instantly share code, notes, and snippets.

@spenserpothier
Last active August 29, 2017 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spenserpothier/2169c264f9f2bb28fa27edc42df57daa to your computer and use it in GitHub Desktop.
Save spenserpothier/2169c264f9f2bb28fa27edc42df57daa to your computer and use it in GitHub Desktop.
cURL with username/password
curl -k -X POST --netrc-file passfile https://url.with.auth.com
machine <https://url.with.auh.com> login <USERNAME> password <PASSWORD>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment