URL:
http://localhost:8080/auth/jsp/
Here are the requests headers as it will be send by the browser, and the responses headers as it will be send back by Tomcat:
-
First, the browser will send these headers as part of the request:
-
Second, Tomcat will send back these headers as part of the response (401 Unauthorized):
-
When you fill your username/password and you click the "Log In" button, the browser will send these headers as part of the request:
-
Then Tomcat will send back these headers as part of the response (200 OK):
Notes:
You can decode the encoded values ent by the browser (
Authorization: Basic dG9tY2F0OnRvbWNhdA==) by using the following Java code:
Output:
tomcat:tomcat
You can also use the following web site:
https://www.base64decode.org