473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Add Header To Request (not the response!)

Hi,

I am trying to figure out how to add a header to an incoming request in
ASP.NET. This is needed because I need to set some header information which
ASP (non-DOTNET) uses to process requests. I have looked at the httpmodule
and httphandler, but can't figure out how to do it (always says it's a
read-only collection). Any ideas? I already have a working ISAPI filter,
but am trying to get away from that setup.

Thanks!

Chad
Dec 10 '05 #1
1 1319
If I recall correctly, IIS passes on the complete request stream to ASP.NET.
By the time an iHttpHandler has access to it it is already part of the
request object as a read only collection of data. Thus, you can only modify
the headers collection at request creation from a windows app for example as
you are creating the request, not recieving it.

You may need to drop down to an ISAPI filter to work with the stream to the
level you are looking for.
http://msdn.microsoft.com/msdnmag/is...8/HTTPFilters/

This might get you started, but its not a solution.
http://msdn.microsoft.com/library/de...9794b42842.asp

There are ISAPI modules you can buy to do this avaialable.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chad A. Beckner" <cb******@iupui.edu> wrote in message
news:e1*************@TK2MSFTNGP14.phx.gbl...
Hi,

I am trying to figure out how to add a header to an incoming request in
ASP.NET. This is needed because I need to set some header information
which ASP (non-DOTNET) uses to process requests. I have looked at the
httpmodule and httphandler, but can't figure out how to do it (always says
it's a read-only collection). Any ideas? I already have a working ISAPI
filter, but am trying to get away from that setup.

Thanks!

Chad

Dec 10 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Davis | last post by:
Any ASP functions can get the HTTP request and response headers? Thanks! John
0
by: Paulam Chang via DotNetMonster.com | last post by:
Is anybody has a working sample on how to use SOAP Extension to log the request and response Thanks Paulam -- Message posted via http://www.dotnetmonster.com
3
by: John Baker | last post by:
Hi: I have developed a form, commencing with the form wizard showing in Design View. Having developed the form partially, I wanted to put a page header on it which would contain the controls. I...
2
by: Reena | last post by:
Hi, Working on .NET 2003. Using C# as server code. I have created a class with following code... using System; using System.Data.OracleClient; using System.Web; using...
2
by: Vaibhav | last post by:
Hi, I am trying to write a web browser control Application in c#, i want to trap al http request and response header which are sent/recieved. I am new to Windows programming With Regards,...
2
by: VSK | last post by:
Hi all, I want to design a DataGrid like in the below website., http://v4.windowsupdate.microsoft.com/en/default.asp Features i need are 1) DataGrid within scrollbar 2) Header must not...
10
by: George G. | last post by:
Hi there, I am busy writing a new asp.net application and I am reusing some of my existing asp functions and methods in a user control. I need access to session, request and response in some of...
1
by: Chad A. Beckner | last post by:
Hi, I am trying to figure out how to add a header to an incoming request in ASP.NET. This is needed because I need to set some header information which ASP (non-DOTNET) uses to process...
3
by: kneidels | last post by:
Hey folks on XPP here. I have always had IIs started by default, but suddenly now i see my default (and only) website is off. i get this message when trying to start it - running...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.