Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > http pipline, ihttpmodule and filtering responses

Reply
Thread Tools

http pipline, ihttpmodule and filtering responses

 
 
Steven Livingstone
Guest
Posts: n/a
 
      10-16-2003
Hello all.
I have a class that modifies the response sent to a user, but it works as
far as the ReleaseRequestState event and not in the UpdateRequestCache
event. So two questions :

1. Background on exactly what and why this is the case would be useful. I
mean something more than "This event signals that code processing is
complete and the file is ready to be added to the ASP.NET cache." - i'd like
to know exactly what is happening under the covers in these events.
Pointers/explanations appreciated.

2. If i wanted to modify something in the content in the
PreSendRequestContent event before the buffer is flushed to the user, is
this possible? Say i wanted to replace all instances of the string "Java"
with "dotNet" in the output content for example.

thanks for any advice,
steven


 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      10-17-2003
Hi Steven,

Not knoe the details in your class, but the main difference between
ReleaseRequestState and UpdateRequestCache are:

ReleaseRequestState occurs after ASP.NET finishes executing all request
handlers. This event causes state modules to save the current state data;
UpdateRequestCache occurs when ASP.NET finishes executing a handler in
order to let caching modules store responses that will be used to serve
subsequent requests from the cache.

You may check if this cause your class didn't work in UpdateRequestCache

And you may refer to following article form more information on this:

INFO: ASP.NET HTTP Modules and HTTP Handlers Overview
http://support.microsoft.com/default...;EN-US;Q307985

For your question 2, you may refer to:

http://support.microsoft.com/default...b;EN-US;307996

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      10-20-2003
HI Steven,

If my explaination is not clear or it didn't answer your question, please
post your comments here and I will follow up with you.

Thanks,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Twisted - how to get text for HTTP error responses koranthala Python 1 08-09-2009 04:23 PM
Chaining/redirecting http responses? sqlman ASP .Net 1 07-17-2009 09:32 PM
Add custom HTTP Header to all Web Service responses Lee Greco ASP .Net Web Services 2 06-17-2008 06:08 PM
Getting HTTP responses - a python linkchecking script. blair.bethwaite@gmail.com Python 5 05-08-2006 08:54 PM
Watch Http Request/Responses PJ ASP .Net 2 08-16-2003 01:06 AM



Advertisments