Curl Basic Server Authentication

An example of a Curl command with basic auth credentials. The user authentication credentials are passed with --user "login:password" Curl command line parameter. Curl automatically converts the "login:password" pair to the Base64 encoded string and adds the 'Authorization: Basic bG9naW46cGFzc3dvcmQ=' header to the request.
Loading...