GET Request With Basic Server Authentication [JavaScript/AJAX Code]

An example of sending a GET request with the Basic Server Authentication credentials. The Authorization: Basic {credentials} request header must be passed with each request when accessing a protected resource, where the {credentials} is a Base64 encoded string of username and password pair joined by a single colon. In this Basic Server Authentication example, we are sending a GET request to the ReqBin echo URL. Click Send to execute GET Request with the Basic Server Authentication credentials online and see the results. The JavaScript/AJAX code was automatically generated for the GET Request Basic Server Authentication example.
Loading...