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!!!
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]
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:
user:password
OR
user@password
OR
USER user
AND (next line)
PASS password
OR
PROXY authorization user:password
Tom Cannaerts
[email protected]
The best way to escape a problem, is to solve it.