curl basic auth header example
Example 1: curl authorization header
curl -H "Authorization: token_str" http://www.example.com
Example 2: curl with basic auth
curl -u username:password http://
curl -u username http://
curl -H "Authorization: token_str" http://www.example.com
curl -u username:password http://
curl -u username http://