Server.Transfer Vs. Response.Redirect... to... \\209.11.22.33\MyDir

A

\A_Michigan_User\

Ok, I give up... why do 1-4 work fine... but 5-6 give "can't find" errors?

1. Client-side VBscript code: call navigate("\\209.11.22.33\MyDir")
2. Client-side VBscript code: location.href ="\\209.11.22.33\MyDir"
3. Typing "\\209.11.22.33\MyDir" into my ie6 browser.
4. Typing "\\209.11.22.33\MyDir" into my Windows Explorer.

5. Server-side ASP: server.transfer "\\209.11.22.33\MyDir"
6. Server-side ASP: response.redirect \\209.11.22.33\MyDir"

How do I make it redirect?

Thanks.
 
B

Bob Barrows [MVP]

A_Michigan_User said:
Ok, I give up... why do 1-4 work fine... but 5-6 give "can't find"
errors?
1. Client-side VBscript code: call navigate("\\209.11.22.33\MyDir")
2. Client-side VBscript code: location.href ="\\209.11.22.33\MyDir"
3. Typing "\\209.11.22.33\MyDir" into my ie6 browser.
4. Typing "\\209.11.22.33\MyDir" into my Windows Explorer.
5. Server-side ASP: server.transfer "\\209.11.22.33\MyDir"
6. Server-side ASP: response.redirect \\209.11.22.33\MyDir"

Really? This is the IP for Google: 64.233.167.99
When I type \\64.233.167.99 into the browser address bar, I get an error. I
have to type //64.233.167.99 to make it go to Google.

This results in "not found":
<%Response.Redirect "\\64.233.167.99"%>

This works fine:
<%Response.Redirect "//64.233.167.99"%>

I didn't bother trying Transfer.

Bob Barrows
 
M

Mark Schupp

When I type \\64.233.167.99 into the browser address bar, I get an error.

If the target IP is on your LAN you can access that server's file-system
using that syntax. Server.Transfer and response.redirect expect a valid URL

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
 
B

Bob Barrows [MVP]

Mark said:
If the target IP is on your LAN you can access that server's
file-system using that syntax. Server.Transfer and response.redirect
expect a valid URL

D'oh!
 
T

teknohippy

If the target IP is on your LAN you can access that server's file-system
using that syntax. Server.Transfer and response.redirect expect a valid URL

Yup, that's what appears to be happening to me. It's a UNC path, which
IE and explorer deal with fine, will mean bolox all to the ASP engine
though.
 
A

\A_Michigan_User\

If the target IP is on your LAN you can access that server's file-system
using that syntax. Server.Transfer and response.redirect expect a valid
URL

That's probably what is happening.

What would a "valid" URL look like?

http://209.11.22.33/MyDir

I haven't tried that yet... but I will.

Should that work for server.transfer and response.redirect ?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top