Using sConnect with Proxy Servers
Keywords: sConnect proxy servers
Question:
I'm trying to use the telnet script to access a proxy server to access the internet, and I am getting error 12. This script worked ont the NT4.0 but not on few win95s. Is their any version of winsock.dll for win95 that does not work with wwwsk32I.dll ?wwwsk32I.DLL - version 1.0.0.1 date: August 20, 1997 winsock.DLL - Version 4.000.950 date: July 11, 1995I have modified the script to this.socket = SOPen() Sconnect (socket, "gauntlet1", "telnet")and also I tried:SConnect (socket, "gauntlet1", "23")Answer:
Our extender works with the Microsoft supplied versions of winsock.dll. Some dial-up browsers seem to like to include their own incompatable copy of winsock.dll.Our Telnet example is tailored to a particular telnet setup. It may need to be modified for different host machines.
Error 12 is: Host computer refused to connect, possibly because it doesn't support the requested service.
Try a more fully qualified host name, and check which DNS servers the machines are using. For example, try a hardcoded IP address "123.321.123.1" or something instead of the hostname.
Question (continued):
I have tried the fully qualified IP address and it still did not work.Note that when I do it directly with c:\windows\telnet.exe, I have no problem going through the proxy.
On my script, I have started telnet.exe and Sconnect at same time. telnet.exe makes connections without any problem, but SConnect call gives me error 12.
Answer:
Aaack. The Internet extender sample code is not designed to communicate to a proxy server. Somehow you have to authenticate yourself to the proxy server first.There are different proxy authentication protocols. You have to figure out which one your server uses and emulate it.
Article ID: W12669Filename: sConnect and Proxy Servers.txt