Re: [twsocket] THttpCli not returning?

2011-04-12 Thread Francois PIETTE
I don't know if there's a better way That is fine. So the HttpCli built-in timeout is not enough?! Only for sync calls. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be

Re: [twsocket] THttpCli not returning?

2011-04-12 Thread Arno Garrels
RTT wrote: On 11-04-2011 16:49, Francois PIETTE wrote: I don't know if there's a better way That is fine. So the HttpCli built-in timeout is not enough?! Indeed, method Get is sync and as such has a built-in timeout as specified with property TimeOut. What ICS version do you use? Get

Re: [twsocket] THttpCli not returning?

2011-04-12 Thread David Lewis
Arno, I'm running with V7 here, although possibly not the latest iteration of it. Is there anything recently new to this component that may affect this functionality? Also, I don't have an accessible TimeOut parameter that I can set. Is this internal to the component only? Or is this a new

Re: [twsocket] THttpCli not returning?

2011-04-12 Thread Arno Garrels
David Lewis wrote: Arno, I'm running with V7 here, although possibly not the latest iteration of it. Is there anything recently new to this component that may affect this functionality? Also, I don't have an accessible TimeOut parameter that I can set. Is this internal to the component

Re: [twsocket] THttpCli not returning?

2011-04-12 Thread Daniele Rocchi
I must say what Arno is talking about I experienced too: the built-in timeout doesn't work (and I only do sync calls), this is why I created an external timeout to call the Abort. If the HttpCli component doesn't recieve anything it hangs forever. Daniele On 12 April 2011 09:13, Arno Garrels

Re: [twsocket] THttpCli not returning?

2011-04-12 Thread Arno Garrels
Daniele Rocchi wrote: I must say what Arno is talking about I experienced too: the built-in timeout doesn't work (and I only do sync calls), I didn't say that. The timeout for sync methods has been added in September 2009 and works well AFAIK. This Timeout property does not work with async

Re: [twsocket] THttpCli not returning?

2011-04-12 Thread Daniele Rocchi
I work with Delphi 7 and the Timeout has never worked for me, I don't know if I was using it incorrectly but I was forced to put an external timeout because of this. Daniele On 12 April 2011 10:05, Arno Garrels arno.garr...@gmx.de wrote: Daniele Rocchi wrote: I must say what Arno is talking

[twsocket] Receive log file text

2011-04-12 Thread daniel cc
Hi, Can someone please help me out w ith a sample of how to, send a log (text file) from client to the server? My connection is with ICSSLServer and ICSSSLClient. My client opens the connection and makes sure connection is always on. Log file is just a regular text file and not so big. I just

[twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Dimitris Botsis
Hi all, how can i use SSLHttpCli in order to directly transfer the contents of a remote text file ? Which are filesize limitations for that ? For example, I have a file : https://www.mydomain.com/myfile.txt and want to read it directly to client. Thank you. -- To unsubscribe or change your

Re: [twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Dimitris Botsis
Hi again, I use the example OverbyteIcsHttpDmo. When I call the text file on my web server using HTTP (as in the example) then I get the contents OK. When I use HTTPS (having added proper sslhttpcli and sslcontect components) the request is sent but don't get any contents back. Any ideas ?

Re: [twsocket] Receive log file text

2011-04-12 Thread Arno Garrels
daniel cc wrote: Hi, Can someone please help me out w ith a sample of how to, send a log (text file) from client to the server? My connection is with ICSSLServer and ICSSSLClient. That works the same way as without SSL. And it depends on your protocol. Typically you send a request to the

Re: [twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Arno Garrels
Dimitris Botsis wrote: Hi again, I use the example OverbyteIcsHttpDmo. When I call the text file on my web server using HTTP (as in the example) then I get the contents OK. When I use HTTPS (having added proper sslhttpcli and sslcontect components) the request is sent but don't get any

Re: [twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Dimitris Botsis
On 12/4/2011 4:40 μμ, Arno Garrels wrote: Dimitris Botsis wrote: Hi again, I use the example OverbyteIcsHttpDmo. When I call the text file on my web server using HTTP (as in the example) then I get the contents OK. When I use HTTPS (having added proper sslhttpcli and sslcontect components) the

Re: [twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Dimitris Botsis
On 12/4/2011 5:04 μμ, Dimitris Botsis wrote: On 12/4/2011 4:40 μμ, Arno Garrels wrote: Dimitris Botsis wrote: Hi again, I use the example OverbyteIcsHttpDmo. When I call the text file on my web server using HTTP (as in the example) then I get the contents OK. When I use HTTPS (having added

Re: [twsocket] Receive log file text

2011-04-12 Thread daniel cc
Thanks Arno :) I understand perfectly, Do we have any samples about this? About the file size, the log file can be sometimes bigger than 3mb, does that makes problem? it normally will be around 0-3mb -Original Message- From: Arno Garrels Sent: Tuesday, April 12, 2011 4:40 PM To:

Re: [twsocket] Receive log file text

2011-04-12 Thread Arno Garrels
daniel cc wrote: Thanks Arno :) I understand perfectly, Do we have any samples about this? I do not think so. About the file size, the log file can be sometimes bigger than 3mb, does that makes problem? it normally will be around 0-3mb That's no problem, the filesize since D6/7 may be

Re: [twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Dimitris Botsis
On 12/4/2011 5:12 μμ, Dimitris Botsis wrote: On 12/4/2011 5:04 μμ, Dimitris Botsis wrote: On 12/4/2011 4:40 μμ, Arno Garrels wrote: Dimitris Botsis wrote: Hi again, I use the example OverbyteIcsHttpDmo. When I call the text file on my web server using HTTP (as in the example) then I get the

Re: [twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Dimitris Botsis
On 12/4/2011 7:18 μμ, Dimitris Botsis wrote: On 12/4/2011 5:12 μμ, Dimitris Botsis wrote: On 12/4/2011 5:04 μμ, Dimitris Botsis wrote: On 12/4/2011 4:40 μμ, Arno Garrels wrote: Dimitris Botsis wrote: Hi again, I use the example OverbyteIcsHttpDmo. When I call the text file on my web server

Re: [twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Arno Garrels
Dimitris Botsis wrote: Hi again, what I try now is get the non-SSL OverByteIcsHttpDemo, and instead Go button calling httpcli component, it calls an sslhttpcli component (I also added a proper sslcontext component) so code became : procedure THttpToMemoForm.GoButtonClick(Sender: TObject);

Re: [twsocket] Receive contents of remote text file over SSL

2011-04-12 Thread Dimitris Botsis
On 12/4/2011 8:36 μμ, Arno Garrels wrote: Dimitris Botsis wrote: Hi again, what I try now is get the non-SSL OverByteIcsHttpDemo, and instead Go button calling httpcli component, it calls an sslhttpcli component (I also added a proper sslcontext component) so code became : procedure

[twsocket] TWsocket connection error 10048

2011-04-12 Thread RayA @ Ihug
Hi... I have got to the bottom of the Error 10048 It seems that the order in witch you assign values to the TWSocket properties when you want to open a client is important - so now I can open and close the client heaps of times with out the error 10048 being raised :-) The code I was using