basic-authentication tagged requests and articles

Categorized request examples and articles tagged with [basic-authentication] keyword
GET Request With Basic Server Authentication
An example of sending a GET request with the basic server authentication credentials. For the basic server authentication, the Authorization: Basic {credentials} header is added to the request. Where the {credentials} is a Base64 encoded string of username and password pair joined by a single colon :

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.

POST JSON String With Basic Authentication
An example of posting JSON string with basic auth credentials. The user authentication credentials are automatically converted to the Base64 encoded string and passed to the server with Authorization: Basic bG9naW46cGFzc3dvcmQ= request header.

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 -u
A live example of sending Curl command with Basic server authentication header (credentials are provided with -u or --user command-line argument).

HTTP Authentication
HTTP provides a framework for controlling access to pages and API resources by defining several authentication schemes and implementing them.

Basic Authentication Method
Basic access authentication method is used by client to provide a user name and password when making a request