Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Error 12007: The server name could not be resolved ERROR_INTERNET_NAME_NOT_RESOLVED
URL = "http://www.windowware.com" saveas= "c:\temp\abc.txt" ; Normal Direct Connect AddExtender("WWINT34i.DLL") tophandle=iBegin(0,"","") datahandle=iUrlOpen(tophandle,URL) if datahandle==0 err=iGetLastError() Message("Last Error",err) iClose(tophandle) exit endif xx=iReadData(datahandle, saveas) iClose(datahandle) iClose(tophandle) Message("All","Done") exitI get Error: 12007: ERROR_INTERNET_NAME_NOT_RESOLVED The server name could not be resolved.
I can connect with IE however.....
Is a firewall/proxy involved? you are probably behind a firewall, usually the proxy server will resolve your host name for you, but you need to tell wininet that you are using a proxy connection, so it wont try to resolve the hostname and you wont get
ERROR_INTERNET_NAME_NOT_RESOLVED.
You will need to modify the iBegin statement.
Try changing the iBegin statment to:
tophandle=iBegin(2,"<registry>","<registry>")
Article ID: W15093
File Created: 2006:10:19:12:43:46
Last Updated: 2006:10:19:12:43:46