468,306 Members | 1,243 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,306 developers. It's quick & easy.

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 855

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
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.