[twsocket] Problem with HttpCli

2006-10-17 Thread ShowMe Software
Hi list,

I'm using Delphi 7 and I'm having a problem with the HttpCli component. 
I've had this component in an app for several years and use it to 'get' a 
simple file.  Just recently, and out of the blue, it stopped working.  When 
it first happened, I couldn't compile the application, stopping on the 
following line:

TAccept= function (s: TSocket; addr: PSockAddr;
   addrlen: PInteger): TSocket; stdcall;

with the error message : [Error] WSOCKET.PAS(3213): Incompatible types: 
'sockaddr_in' and 'PSOCKADDR' [Fatal Error] EXRATE.PAS(66): Could not 
compile used unit 'WSocket.pas'

I did a Google search on this error and Francois' answer was that perhaps 
this fellow had messed up the folders in the installation or didn't have the 
correct path in the library.  Francois went on to say that you had to be 
sure you had the correct version of wsocket.pas for your Delphi version.

So, I downloaded the latest version of ICS (not beta), uninstalled the 
current version of ICS and installed the new version.  I did delete all of 
the ICS dcu files before reinstalling ICS.  After that, I could compile and 
everything looked OK at first.  But, when I run the application and the code 
attempts to 'get', I now get the following error:

Project Freesale.exe raised exception class EHTTPException with message 
'Can't resolve hostname to IP address.

I'm at a loss as to what's causing my problem.  I haven't changed any of the 
code in my app in the area where the file get is performed.  I'd be grateful 
if you could help me figure out where the problem is.

Thank You,
Harry 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Problem with HttpCli

2006-10-18 Thread ShowMe Software
Thanks Francois.  I took a clue from your suggestion and found the problem. 
It wasn't in the IP address but was in the Proxy property.  The Proxy 
property of HttpCli (which was loading from an .ini file) was getting a 
value from the .ini file that was stopping the connection.  The bad value 
was apparently being saved to the .ini file because of a typo on my part in 
the code.

Expect a fancy postcard from the sunny (sometimes) Lake of the Ozarks in the 
U.S.  :-)

Thanks for the help,
Harry

- Original Message - 
From: Francois Piette [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, October 18, 2006 2:16 AM
Subject: Re: [twsocket] Problem with HttpCli


 Project Freesale.exe raised exception class EHTTPException with
 message 'Can't resolve hostname to IP address.

 This message means the component can't get the IP address for the hostname
 you specified in the URL. It could be a simple typo error in the URL. 
 Check
 it twice. And try the URL with your favorite browser.

 You may also have been the victim of a virus. Some are killing the TCP/IP
 configuration, moving the location of config files to somewhere else and 
 so
 winsock doesn't fond them any more.


 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be


 - Original Message - 
 From: ShowMe Software [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Wednesday, October 18, 2006 4:08 AM
 Subject: [twsocket] Problem with HttpCli


 Hi list,

 I'm using Delphi 7 and I'm having a problem with the HttpCli component.
 I've had this component in an app for several years and use it to 'get' a
 simple file.  Just recently, and out of the blue, it stopped working.
 When
 it first happened, I couldn't compile the application, stopping on the
 following line:

 TAccept= function (s: TSocket; addr: PSockAddr;
addrlen: PInteger): TSocket;
 stdcall;

 with the error message : [Error] WSOCKET.PAS(3213): Incompatible types:
 'sockaddr_in' and 'PSOCKADDR' [Fatal Error] EXRATE.PAS(66): Could not
 compile used unit 'WSocket.pas'

 I did a Google search on this error and Francois' answer was that perhaps
 this fellow had messed up the folders in the installation or didn't have
 the
 correct path in the library.  Francois went on to say that you had to be
 sure you had the correct version of wsocket.pas for your Delphi version.

 So, I downloaded the latest version of ICS (not beta), uninstalled the
 current version of ICS and installed the new version.  I did delete all 
 of
 the ICS dcu files before reinstalling ICS.  After that, I could compile
 and
 everything looked OK at first.  But, when I run the application and the
 code
 attempts to 'get', I now get the following error:

 Project Freesale.exe raised exception class EHTTPException with message
 'Can't resolve hostname to IP address.

 I'm at a loss as to what's causing my problem.  I haven't changed any of
 the
 code in my app in the area where the file get is performed.  I'd be
 grateful
 if you could help me figure out where the problem is.

 Thank You,
 Harry

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be