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

Discussion in 'ASP General' started by \A_Michigan_User\, Jan 25, 2005.

  1. 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.
    \A_Michigan_User\, Jan 25, 2005
    #1
    1. Advertising

  2. "A_Michigan_User" wrote:
    > 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
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
    Bob Barrows [MVP], Jan 25, 2005
    #2
    1. Advertising

  3. \A_Michigan_User\

    Mark Schupp Guest

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


    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


    "Bob Barrows [MVP]" <> wrote in message
    news:%...
    > "A_Michigan_User" wrote:
    >> 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
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    Mark Schupp, Jan 25, 2005
    #3
  4. Mark Schupp wrote:
    >> When I type \\64.233.167.99 into the browser address bar, I get an
    >> error. I

    >
    > 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!

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.
    Bob Barrows [MVP], Jan 25, 2005
    #4
  5. \A_Michigan_User\

    teknohippy Guest

    On Tue, 25 Jan 2005 08:40:22 -0800, "Mark Schupp" <>
    wrote:

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

    >
    >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.



    --
    Iain Norman | http://www.eliteforum.org
    teknohippy, Jan 26, 2005
    #5
  6. > 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


    "Mark Schupp" <> wrote in message
    news:...
    >> When I type \\64.233.167.99 into the browser address bar, I get an error.
    >> I

    >
    > 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
    >
    >
    > "Bob Barrows [MVP]" <> wrote in message
    > news:%...
    >> "A_Michigan_User" wrote:
    >>> 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
    >> --
    >> Microsoft MVP - ASP/ASP.NET
    >> Please reply to the newsgroup. This email account is my spam trap so I
    >> don't check it very often. If you must reply off-line, then remove the
    >> "NO SPAM"
    >>

    >
    >
    \A_Michigan_User\, Jan 29, 2005
    #6
  7. "A_Michigan_User" wrote:
    >> 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
    >

    Yes. Forward-slashes instead of back-slashes
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
    Bob Barrows [MVP], Jan 29, 2005
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Justin
    Replies:
    3
    Views:
    538
    Cowboy \(Gregory A. Beamer\)
    Jul 31, 2003
  2. Harsh Thakur

    Response.Redirect vs Server.Transfer

    Harsh Thakur, Aug 18, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    774
    Harsh Thakur
    Aug 18, 2003
  3. Colin J. Williams

    PEP 209 - Multi-dimensional Arrays

    Colin J. Williams, Jul 30, 2003, in forum: Python
    Replies:
    0
    Views:
    325
    Colin J. Williams
    Jul 30, 2003
  4. Sal
    Replies:
    1
    Views:
    401
  5. David C. Holley

    server.execute/response.redirect/server.transfer

    David C. Holley, Jan 17, 2004, in forum: ASP General
    Replies:
    6
    Views:
    432
    David Holley
    Jan 18, 2004
Loading...

Share This Page