How do I pass authorization header using cURL? ( executable in /usr/bin/curl).

12 s
12

Just adding so you don’t have to click-through:

curl --user name:password http://www.example.com

or if you’re trying to do send authentication for OAuth 2:

curl -H "Authorization: OAuth <ACCESS_TOKEN>" http://www.example.com

Leave a Reply

Your email address will not be published. Required fields are marked *