When I do the following, passing my JIRA API token ...
curl --verbose --request GET \
--url 'https://myJira.atlassian.net/....' \
--user 'my_email@domain.com:my_jira_api_token' ...
... the operation succeeds and I see one of the headers was:
Authorization: Basic encodedAuthInfoHere
How would I do the same with Drakma? :basic-authorization
takes a list of username and password. But JIRA says basic auth has been deprecated.
(drakma:http-request url
:method :get
:basic-authorization '(email passwd)
...
Is there a way to perform the same encoding that curl used, and add the header explicitly when calling http-request
? Thanks in advance!