how to set basic auth in curl code example Example: curl with basic auth curl -u username:password http:// curl -u username http://