CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Location
    Switzerland
    Posts
    1

    Internet via Proxy with Winsock/Inet

    HELP HELP HELP HELP HELP HELP

    On our LAN I am trying to make a connetion to the internet with visual basic via a PROXY-server. Our proxy requires a username and a password. I tried to connect with the WINSOCK1-control and the INET-control but without success!!!
    => with the WINSOCK1-control I could not find a way to select a proxy
    => with INET-control the Inet1.AccessType and Inet1.Proxy-Name can be set, but whats about the username and password for the proxy??? (i think the Inet1.UserName and Inet1.Password cannot be used, because this is used for the target URL!?)
    I tried this:
    Var1:
    Inet1.AccessType = icNamedProxy
    Inet1.Proxy = "147.50.23.111:8080"
    Inet1.UserName = "e1105"
    Inet1.Password = "xxx"
    => "Proxy authorization required" was the result!!!

    Var2:
    Inet1.AccessType = icNamedProxy
    Inet1.Proxy = "147.50.23.111:8080?user=e1105&password=xxx"
    => "Proxy authorization required" was the result!!!


    My question is:
    => Is there A way with visual basic to do this????

    PLEASE, PLEASE give me a feedback!!!! - many many thanks!!!



  2. #2
    Guest

    Re: Internet via Proxy with Winsock/Inet

    You have to wait till the proxy sends you an confirmation message
    or control your Proxy settings
    Look if if system is properly configured (PPP, SQL,Acess privileges)
    [email protected]


  3. #3
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Internet via Proxy with Winsock/Inet

    I'm not sure of this, but it's worth a try
    Try this when using winsock:

    note that there are several ways of passing a password, depends on your proxy's configuration

    before sending your request, send this line first:
    userassword


    OR
    user@password


    OR
    USER user


    AND (next line)
    PASS password


    OR
    PROXY authorization userassword




    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured