PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

HTTPHandler and redirects

 
 
Mike Lowery
Guest
Posts: n/a
 
      20th Jun 2006
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE 6 SP2 redirects to adult site and crashes =?Utf-8?B?RW1tYQ==?= Windows XP Internet Explorer 5 4th May 2005 07:37 PM
Every Browse attempt succeeds and then Redirects to "HTTP:///" and shows "The page cannot be displayed" Elizabeth Windows XP Internet Explorer 3 15th Dec 2004 12:27 PM
IE redirects and taskbar problem =?Utf-8?B?cm9qYWs=?= Windows XP General 3 29th Jun 2004 05:55 AM
IE Redirects and Jumps..... Steph Windows XP Internet Explorer 5 10th Mar 2004 10:15 PM
IE Redirects and Jumps.... Steph Windows XP Internet Explorer 2 8th Mar 2004 04:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:40 PM.