Re: Response.Redirect Custom Protocol, not http



Hi George,

I've run fiddler and it looks like response.redirect is returning the
correct information,

-------
HTTP/1.1 302 Found
Cache-Control: private, max-age=0
Location: myprotocol://foobar/?param=hello
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Wed, 17 Sep 2008 13:21:24 GMT
Content-Length: 178

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href="myprotocol://foobar/?param=hello">here</a>.</h2>
</body></html>
--------

So I'm guessing as Anthony has suggested that it's all handled in the
HTTP stack so therefore won't work. It's a bit frustrating really as it
means I have no chance of making a "codeless" sample. But I guess 3 lines
doesn't hurt too much.

Nick.

"George" <noemail@xxxxxxxxxxx> wrote in message
news:egH3SqBFJHA.3288@xxxxxxxxxxxxxxxxxxxxxxx
You welcome,

Just a tip from me...
2 tools i can not do web development without.

1. Fiddler (Best to work with IE).
2. FireBug - plug-in for Firefox. Best to analyse Javascript errors, DHTML
layout...Highly recomended.

PS: There is IE Development Toolbar which is simmilar to FireBug but has
very reduced functionality. Still good since it works in IE and FireBug
only for FireFox.

George.




"Nick" <a@xxxxx> wrote in message
news:usxSfmBFJHA.6052@xxxxxxxxxxxxxxxxxxxxxxx
Hi George,

Cheers, I wasn't aware of that application, I shall take a look at it,
thanks for your help, I'll see what I can find.

Nick.

"George" <noemail@xxxxxxxxxxx> wrote in message
news:uCvoMWBFJHA.680@xxxxxxxxxxxxxxxxxxxxxxx
I do not see why it should not work...
You need to be more verbose.
When you saying that you "not seem to be able to redirect to a custom
protocol" what exactly do you mean?
Do you know where problem is.
It might be in a browser when browser simply does not understand
myprotocol://myurl or it might be in a ASP.NET if Response.Redirect
tries to analyze the URL before sending to the browser

Install tool from Microsoft called http://www.fiddlertool.com/fiddler/
it will help you see what browser is getting from the server.

George.







"Nick" <a@xxxxx> wrote in message
news:%23Iv54b$EJHA.5224@xxxxxxxxxxxxxxxxxxxxxxx
Hi there,

I would like to perform something like the following from my vb.net
web service, being invoked via HTTP Post

Call HttpContext.Current.Response.Redirect("myprotocol://myurl")

Unfortunately I do not seem to be able to redirect to a custom
protocol url, any ideas why? Basically I'm trying to implement this
functionality so no coding need take place to get the redirection from
the consuming web page.

Cheers for any advice.

Nick.







.



Relevant Pages

  • Re: LSP HTTP redirecting
    ... by writing BHO and catching all BeforeNavigate events. ... >> If you want to redirect the browser write proxy server. ...
    (microsoft.public.win32.programmer.networks)
  • Re: HTTP ping pong
    ... The server responds with web page. ... This is the browser parsing the HTML, ... Sometimes there is a redirect. ... browser to request the next leg and wait for the response. ...
    (comp.lang.java.help)
  • Re: HTTP ping pong
    ... The server responds with web page. ... the browser then simultaneously sends some more get requests. ... Sometimes there is a redirect. ... browser to request the next leg and wait for the response. ...
    (comp.lang.java.help)
  • HTTP ping pong
    ... The server responds with web page. ... the browser then simultaneously sends some more get requests. ... Sometimes there is a redirect. ... browser to request the next leg and wait for the response. ...
    (comp.lang.java.help)
  • Re: Got TCP/IP connection, but no file sharing!?
    ... No where can I find that having the Computer Browser Service ... and the server announces itself on the networking using the special ... and why doesn't a workgroup environment work the same ... server) generally acts as the master browser. ...
    (microsoft.public.windowsxp.network_web)