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?
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
DiskCrasher
Member
35 Points
7 Posts
Redirecting browser
Jun 20, 2006 01:41 AM|LINK
How can I make this work?
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