471,601 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,601 software developers and data experts.

HTTPHandler and redirects

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
Jun 20 '06 #1
0 955

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jed | last post: by
4 posts views Thread by Jeremy Lew | last post: by
2 posts views Thread by MilanB | last post: by
4 posts views Thread by =?Utf-8?B?S2V2aW4=?= | last post: by
5 posts views Thread by hawkeye parker | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.