Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeEclipse
linenumberstrue
<%

 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>");

 %>

 

 

...

  • 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
titleNote
  • IIS passes HTTP headers to reverse proxy in lower case only