curl authorization header
snippet in c

curl authorization header

user4344

curl -H "Authorization: token_str" http://www.example.com

basic authentication bash

user6838

$ echo -n user:password | base64