Skip to content

Instantly share code, notes, and snippets.

@beldpro-ci
Last active May 9, 2017 01:15
Show Gist options
  • Save beldpro-ci/4e7cce142ef86d2f74a4f585e5734b1b to your computer and use it in GitHub Desktop.
Save beldpro-ci/4e7cce142ef86d2f74a4f585e5734b1b to your computer and use it in GitHub Desktop.
Bearer to Basic
http -v :80/bearer-to-basic Authorization:'Bearer token'
GET /bearer-to-basic HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Authorization: Bearer token
Connection: keep-alive
Host: localhost:80
User-Agent: HTTPie/0.9.9
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 145
Content-Type: application/octet-stream
Date: Tue, 09 May 2017 01:12:19 GMT
Server: openresty/1.11.2.3
Headers:
host=localhost
authorization=Basic IHRva2VuOg==
accept-encoding=gzip, deflate
user-agent=HTTPie/0.9.9
connection=close
accept=*/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment