How do I set up the basic authorization using 64 encoded credentials ? I tried below the two commands but of no use , please suggest.
curl -i -H \'Accept:applic
Use the -H header again before the Authorization:Basic things. So it will be
-H
curl -i \ -H 'Accept:application/json' \ -H 'Authorization:Basic BASE64_string' \ http://example.com
Here, BASE64_string = Base64 of username:password
BASE64_string
username:password