...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<% out.println("<ul>"); java.util.Enumeration names = request.getHeaderNames(); while (names.hasMoreElements()) { String name = (String) names.nextElement(); String value = request.getHeader(name); out.println(" <li> <b>" + name + "=</b>" + value +"</li>"); } out.println("</ul>"); %> |
- Check Tomcat Service Status by Double Clicking Tomcat Service Manager from System Tray Icon.
- Test by opening http://localhost:8080 or http://127.0.0.1:8080 , it should open default Apache Tomcat Page.
- Now we can test our test.jsp page to retrieve headers from the Webpage. Open http://localhost:8080/test.jsp or http://127.0.0.1/test.jsp . You should see all HTTP headers from that particular Web Page for that session
...
- Open http://localhost/test.jsp from the same Windows Computer or http://win2008-test.cloudapp.net from outside World, it should prompt for Credentials
- Please provide credentials as any valid Windows User available on Windows IIS Server e.g. adminuser
- If you provide valid credentials, it will proxy request to Tomcat and will process the test.jsp and will display all HTTP headers passed on to the Backend Web Server i.e. Tomcat
- Please check if you see "x-pi-sso-user" header and value of this header should be the same user as you authenticated by providing credentials initially
Info | ||
---|---|---|
| ||
|