Hello Developers,
I have a following problem: I need to write a HttpHandler rewriting requests
like:
/Resource.axd?re sid=1 to /someimage.gif
My HttpHandler is listed in the web.config, its ProcessRequest( ) method gets
called but I cannot get it to work.
If within IHttpHandler.Pr ocessRequest() method instead of RewritePath()
method I use Server.Transfer () it works in IE but FireFox instead of images
shows text garbage. I suspect Response.Conten tType is incorrect and FireFox
is just more sensitive.
Has anyone managed to handle a similar scenario where not only path gets
rewritten but also the resource type?
Why RewritePath() called within IHttpHandler.Pr ocessRequest() does not seem
to work?
Thank you for any hints.
Tomasz
I have a following problem: I need to write a HttpHandler rewriting requests
like:
/Resource.axd?re sid=1 to /someimage.gif
My HttpHandler is listed in the web.config, its ProcessRequest( ) method gets
called but I cannot get it to work.
If within IHttpHandler.Pr ocessRequest() method instead of RewritePath()
method I use Server.Transfer () it works in IE but FireFox instead of images
shows text garbage. I suspect Response.Conten tType is incorrect and FireFox
is just more sensitive.
Has anyone managed to handle a similar scenario where not only path gets
rewritten but also the resource type?
Why RewritePath() called within IHttpHandler.Pr ocessRequest() does not seem
to work?
Thank you for any hints.
Tomasz
Comment