DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005

    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?

  2. #2
    Join Date
    Apr 2004
    New York City
    Dunno, But...

    Try looking up "IAuthenticationModule Interface" in the online Help.

    Maybe it'll point you in the right direction.


Similar Threads

  1. Xindice query
    By nonolap in forum XML
    Replies: 0
    Last Post: 05-26-2005, 04:10 AM
  2. Swing client - http get
    By jimmy in forum Java
    Replies: 0
    Last Post: 04-01-2003, 03:48 AM
  3. Replies: 5
    Last Post: 12-05-2002, 07:23 PM
  4. Replies: 0
    Last Post: 10-31-2002, 04:01 AM
  5. Why Web Services are Important
    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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.