-
Adding Http Headers to a Request from Client
I'm working on a project where under certain circumstances (which can be identified either by the page the user came from or the value of a session variable) I need to add authentication information to the http headers in the request sent by the client (the application uses basic authentication so I just need to add the "Authorization: Basic <base64 string>" header. I think I should be able to do this using an HttpModule and the BeginRequest or some other event in the HttpApplication, but it seems that the HttpApplication's Request.Headers collection is always read-only. Am I right that I should be able to add a header using an HttpModule, and if so, can anybody offer an example to demonstrate how?
-
Dunno, But...
Try looking up "IAuthenticationModule Interface" in the online Help.
Maybe it'll point you in the right direction.
-Andrew
Similar Threads
-
Replies: 0
Last Post: 05-26-2005, 04:10 AM
-
Replies: 0
Last Post: 04-01-2003, 03:48 AM
-
By kamisetty in forum ASP.NET
Replies: 5
Last Post: 12-05-2002, 07:23 PM
-
Replies: 0
Last Post: 10-31-2002, 04:01 AM
-
By Constance J. Petersen in forum .NET
Replies: 13
Last Post: 08-28-2002, 10:06 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks