Last active
September 18, 2020 20:57
-
-
Save rpc180/b7051c8c436097d48f90cb2d829d2e0e to your computer and use it in GitHub Desktop.
Header Dump ASPX Webpage Blue/Green
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="False" EnableViewState="False" EnableViewStateMac="False" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head runat="server"> | |
<title>Header Dump - East US</title> | |
</head> | |
<body style="background-color:lightgreen;"> | |
<h1>Header Dump - East US</h1><p> | |
<form id="formHeaderDump" runat="server"> | |
<div id="divHeaderDump"> | |
<asp:Literal ID="litrlHeaderDump" runat="server" /> | |
</div> | |
</form> | |
</body> | |
</html> | |
<script runat="server"> | |
void Page_Load(object sender, EventArgs e) | |
{ | |
Response.Cache.SetCacheability(HttpCacheability.NoCache); | |
foreach (string strKey in Request.Headers.AllKeys) | |
litrlHeaderDump.Text += strKey + " = " + Request.Headers[strKey] + "<br />\n"; | |
} | |
</script> | |
<!-- Super useful page from https://pedrosneglectedtechblog.blogspot.com/2010/02/quick-and-easy-http-header-dump-aspnet.html --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment