Skip to content

Instantly share code, notes, and snippets.

@mikeananev
Created June 26, 2022 19:24
Show Gist options
  • Select an option

  • Save mikeananev/423d5a9f0b4a6d10a04834b0a1a3316b to your computer and use it in GitHub Desktop.

Select an option

Save mikeananev/423d5a9f0b4a6d10a04834b0a1a3316b to your computer and use it in GitHub Desktop.
Jira basic auth with curl
curl -v -u username https://jira.mycompany.com/browse/PMR-50
curl -v -u username:password https://jira.mycompany.com/browse/PMR-50
echo -n username:password | base64
dXNlcm5hbWU6cGFzc3dvcmQ=
curl -D- -X GET -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ==" -H "Content-Type: application/json" "https://jira.mycompany.com/browse/PMR-50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment