curl-authentication tagged requests and articles

Categorized request examples and articles tagged with [curl-authentication] keyword
How do I send Basic Auth Credentials with Curl?
To send basic auth credentials with Curl, use the "-u login:password" command-line option. Curl automatically converts the login:password pair into a Base64-encoded string and adds the "Authorization: Basic bG9naW46cGFzc3dvcmQ =" header to the request. Below is an example of sending a Curl request with basic auth credentials.

Curl POST With Basic Authentication
An example of making a POST request with basic authentication credentials using Curl. The basic authentication credentials are passed with the --user "login:password" command-line parameter. The POST data are passed with the -d parameter.

Curl to Pick an Authentication Method
This page shows the result of the GET request to the https://reqbin.com. The --insecure option is used to disable certificate verification, and the --anyauth option tells curl to decide the authentication method to use the most secure one the remote site claims it supports. The -v, or --verbose option makes the operation more talkative.