Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP.NET (Non-Forum Related)
 How to send data via HTTP Header?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

GoodMorningSky
Junior Member

122 Posts

Posted - 03 March 2005 :  18:22:41  Show Profile
I want to send authentication info when redirecting to one page to the other page . Those pages are running on different Application.
Both application are Cookie less.
I don't want to pass via Query string, since user shouldn't see it.

So, I decided to pass via HTTP HEADER.

FROM WebApp1/Page1.aspx.

private void bt_Click(object sender, System.EventArgs e)
{
Response.AppendHeader("SkyHeader", "Sky header contents");
Response.Redirect("http://localhost/WebApp2/Page2.aspx");
}

AND FROM WebApp2/Page2.aspx
private void Page_Load(object sender, System.EventArgs e)
{
string myHeaderInfo = Request.Headers["SkyHeader"];
}

BUT, the problem is myHeaderInfo always null. There is no header named "SkyHeader".

I think this is common issue regardless it's .NET or ASP..
WHAT is problem??
How can I send the info???
Any comment will help!!
Thank you.

Software Engineer.
MCSD.NET, SCWCD
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000 Version 3.4.07