000020877 - RSA ClearTrust sample .NET ASPX page to display all HTTP header variables

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000020877
Applies ToRSA ClearTrust 5.5 Authorization Server (AServer)
Microsoft Windows 2000 Server SP3
Microsoft .NET Framework 1.1
Microsoft Internet Information Server (IIS) 5.5
IssueRSA ClearTrust sample .NET ASPX page to display all HTTP header variables
ResolutionThe following ASPX script will print out all HTTP header variables; this script can be used a troubleshooting tool for Web-based applications that rely on HTTP header variables:

1. In a text editor, cut and paste the following code and save it to a file:

<%@ Page Language="VB" EnableViewState="False" %>
<script Language="VB" Option="Explicit" runat="server">

 Sub Page_Load(Src as object, E as EventArgs)

  ServerVarsRepeater.DataSource = Request.ServerVariables
  ServerVarsRepeater.DataBind

 End Sub

</script>

<html>
<head>
 <title>ClearTrust http header variables</title>
</head>
<body>

<form runat="server">

<p>
IP <%= Request.ServerVariables("REMOTE_ADDR") %>!
Browser <%= Request.ServerVariables("HTTP_USER_AGENT") %>.
</p>

<asp:Repeater id="ServerVarsRepeater" runat="server">
 <HeaderTemplate>
  <table border="2">
  <tr>
   <td><b>Company</b></td>
   <td><b>Symbol</b></td>
  </tr>
 </HeaderTemplate>
 <ItemTemplate>
  <tr>
   <td><%# Container.DataItem %></td>
   <td><%# Request.ServerVariables(Container.DataItem) %> </td>
  </tr>
 </ItemTemplate>
 <FooterTemplate>
  </table>
 </FooterTemplate>
</asp:Repeater>

</form>

</body>
</html>

2. Place that file inside a ClearTrust-protected folder

3. After authentication, point the URI to this file and all the HTTP header variables will be shown in a table format
Legacy Article IDa19309

Attachments

    Outcomes