curl http header authorization code example
Example 1: curl authorization header
curl -H "Authorization: token_str" http://www.example.com
Example 2: basic authentication bash
$ echo -n user:password | base64
curl -H "Authorization: token_str" http://www.example.com
$ echo -n user:password | base64