curl --user basic code example Example: curl with basic auth Click to copycurl -u username:password http:// curl -u username http://