HTTPHandler and redirects

M

Mike Lowery

I've written an HTTPHandler based on the article at
http://msdn2.microsoft.com/en-us/library/ms228090.aspx. It's working, but I
have one problem. What I'm trying to do is redirect the browser from an HTTP
link to an MMS link. I've done a packet sniff and determined that the web
server is responding with an HTTP 302 Found response and including the MMS link
but IE comes back with "the page cannot be displayed." Funny thing is, it works
in Firefox.

How can I make this work in IE?

Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements
System.Web.IHttpHandler.ProcessRequest

Dim request As HttpRequest = context.Request
Dim response As HttpResponse = context.Response

Dim strURL As String = "mms://server"
strURL &= request.FilePath

response.Redirect(strURL)

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top