473,406 Members | 2,867 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,406 software developers and data experts.

HttpModule read Response without using Response.Filter

Hello

Can anyone suggest a way to read the response (I want to write it to a file)
in an HttpModule but without using a response filter?

I can't see any other way to get at the response stream.

Thanks
Brian Norman
Nov 19 '05 #1
1 2230
You can capture the output by overriding the Render() method of the page object which would give you access to the text.

http://west-wind.com/weblog/posts/481.aspx

I'm not sure if you could do this from within an httpmodule as the information at this point is already in the stream.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Brian Norman" <Br*********@discussions.microsoft.com> wrote in message news:89**********************************@microsof t.com...
Hello

Can anyone suggest a way to read the response (I want to write it to a file)
in an HttpModule but without using a response filter?

I can't see any other way to get at the response stream.

Thanks
Brian Norman

Nov 19 '05 #2

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

Similar topics

0
by: Peter Row | last post by:
Hi, Just in case anyone else has the following issue (unlikely but you never know) here is the solution I eventually found after I was threatening myself with a wipe and reload of my laptop. ...
10
by: Girish | last post by:
Ok, Ive been thinking about this problem for a while. I have 30 odd aspx pages (already built) on my website that I need to have some validation occur before the page should load. The validation...
4
by: Thomas | last post by:
I want to be able to implement a filter that manipulates the output from the server... Maybe replacing some words, or highlighting a search string, or some other fancy feature... I want to make...
7
by: Shapiro | last post by:
I have a scenario where I log a resquest to a database table and update the request with a corresponding response including the response time. I am using an HttpModule to do this. My challenge...
3
by: Adam | last post by:
Its my understanding that in asp.net 2.0 you can write an httpmodule that will acts as a wildcard handler and pass requests on to the proper engine, for instance, asp or perl for example, In the...
1
by: nsyforce | last post by:
Can you change the domain name in an HTTPModule? I have seen examples of changing the relative url in an HTTP Module, such as the following: protected void AuthenticateRequest(object sender,...
0
by: Tom | last post by:
Hi, I try to modify the request stream of the HttpApplication object. I work with a request filter, thus I implemented the Stream class at the derived class. In the BeginRequest event handler...
0
by: mpdoreilly | last post by:
Hi, I've a webservice that has several typical webmethods that clients call and get responses from. (Side note: The websriivce is actually to implement the server side of tr-069, the protocol...
1
by: lu2vik | last post by:
Hi, I would like to change the outputstream from response in the EndRequest httpmodule event. I tried whith the Response.Filter properties it works in the BeginRequest but not in the...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.