T
Tomasz J
Hello Developers,
I have a following problem: I need to write a HttpHandler rewriting requests
like:
/Resource.axd?resid=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.ProcessRequest() method instead of RewritePath()
method I use Server.Transfer() it works in IE but FireFox instead of images
shows text garbage. I suspect Response.ContentType 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.ProcessRequest() 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?resid=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.ProcessRequest() method instead of RewritePath()
method I use Server.Transfer() it works in IE but FireFox instead of images
shows text garbage. I suspect Response.ContentType 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.ProcessRequest() does not seem
to work?
Thank you for any hints.
Tomasz