curl -u username:password http://example.com #To avoid password being visible curl -u username http://example.com