Re: [twsocket] HTTPClient and comet / chunked transfer and post datawith active connection

2011-09-02 Thread Arno Garrels
Fredrik Larsson wrote: > Hi, > > > > I am working on a project where the server side delivers HTTP-data as > comet / chunked transfers e.g. the connection is never closed and as > new events come along it sends new data over the same connection. > There is no way to change the server side and us

[twsocket] HTTPClient and comet / chunked transfer and post data with active connection

2011-09-02 Thread Fredrik Larsson
Hi, I am working on a project where the server side delivers HTTP-data as comet / chunked transfers e.g. the connection is never closed and as new events come along it sends new data over the same connection. There is no way to change the server side and use sockets instead (server side isn't m

Re: [twsocket] HttpClient download and Progress Bar

2011-01-09 Thread Jean-Paul Passama
Le 09/01/2011 16:08, Jean-Paul Passama a écrit : Le 09/01/2011 15:49, Arno Garrels a écrit : Jean-Paul Passama wrote: Hi, I'm trying to have a progress bar working during a file download by HttpClient.Get (and HttpClient.RcvdStream). I've seen the OnDocData that seems to receive the length of

Re: [twsocket] HttpClient download and Progress Bar

2011-01-09 Thread Jean-Paul Passama
Le 09/01/2011 15:49, Arno Garrels a écrit : Jean-Paul Passama wrote: Hi, I'm trying to have a progress bar working during a file download by HttpClient.Get (and HttpClient.RcvdStream). I've seen the OnDocData that seems to receive the length of data downloaded. Unfortunaly, the data length isn

Re: [twsocket] HttpClient download and Progress Bar

2011-01-09 Thread Arno Garrels
Jean-Paul Passama wrote: > Hi, > > I'm trying to have a progress bar working during a file download by > HttpClient.Get (and HttpClient.RcvdStream). > > I've seen the OnDocData that seems to receive the length of data > downloaded. Unfortunaly, the data length isn't really the size of the > piece

[twsocket] HttpClient download and Progress Bar

2011-01-09 Thread Jean-Paul Passama
Hi, I'm trying to have a progress bar working during a file download by HttpClient.Get (and HttpClient.RcvdStream). I've seen the OnDocData that seems to receive the length of data downloaded. Unfortunaly, the data length isn't really the size of the piece of file downloaded because the pack

Re: [twsocket] HttpClient Add a Header Variable

2009-03-10 Thread Fastream Technologies
Hello Wayne, There is an event called OnBeforeHeader... which gets the request header as a TStringlist where you can change. Regards, SZ On Tue, Mar 10, 2009 at 1:11 PM, wayne forrest wrote: > How does one add a Header variable to ICS HttpClient ? > > thank you. > -- To unsubscribe or change

[twsocket] HttpClient Add a Header Variable

2009-03-10 Thread wayne forrest
How does one add a Header variable to ICS HttpClient ? thank you. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] Httpclient

2007-07-22 Thread DZ-Jay
On Jul 21, 2007, at 11:58, Joakim Krassman wrote: > Is there > anyone that do have a code snippet that actually tells me the exactly > weight > of all the content that the httpclient downloaded? There is no way for any client to know the entire weight of all content without requesting each pi

Re: [twsocket] Httpclient

2007-07-21 Thread Arno Garrels
Joakim Krassman wrote: > Hi all, > I hope that I managed to post this question to the right newsgroup, > if not - be nice to me ;) > > Question, > I am looking at the http client and I want that component to get the > total size of a webpage with all graphics, flash etc. Since the THttpCli is no

[twsocket] Httpclient

2007-07-21 Thread Joakim Krassman
Hi all, I hope that I managed to post this question to the right newsgroup, if not - be nice to me ;) Question, I am looking at the http client and I want that component to get the total size of a webpage with all graphics, flash etc. As I see it - it just looks at the header and sen

Re: [twsocket] HttpClient inside HttpServer

2006-07-30 Thread Wilfried Mestdagh
Hello, You can put it in the Tag property if you cast it to an integer. Later in OnDocDone or whatever you restore it back by typecasting to THttpConnection. Dont forget to make it null when the connection is gone. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http

Re: [twsocket] HttpClient inside HttpServer

2006-07-30 Thread Francois PIETTE
> Inside a THttpServer.OnGetDocument event, I have been using several > THttpCli > objects sucessfully for quite a while using Get. As my data returned is > growing every month, i would like to start using GetAsync. > The problem i have is, my data is returned in THttpCli.OnDocDone & i am > unable

[twsocket] HttpClient inside HttpServer

2006-07-29 Thread JohnW
Inside a THttpServer.OnGetDocument event, I have been using several THttpCli objects sucessfully for quite a while using Get. As my data returned is growing every month, i would like to start using GetAsync. The problem i have is, my data is returned in THttpCli.OnDocDone & i am unable to access TH

Re: [twsocket] HttpClient, load&save png file

2006-03-09 Thread Francois Piette
> How to load some image and save in to file or directly assign to image object > on form? HttpCli1.URL := 'http://www.myserver.com/images/test.png'; HttpCli1.RcvdStream := TMemoryStream.Create; HttpCli1.Get; MyPngComponent.LoadFromStream(HttpCli1.RcvdStream); HttpCli1.RcvdStream.Free; Of course

Re: [twsocket] HTTPClient

2006-02-15 Thread Fastream Technologies
, 2006 9:39 AM Subject: Re: [twsocket] HTTPClient >> I am having a problem with HttpClient that sits for nearly >> hours on a url while trying to download it. >> If I am not mistaken there is no timeout property to specify. >> How would I go about this? > > Use a T

Re: [twsocket] HTTPClient

2006-02-14 Thread Francois Piette
> I am having a problem with HttpClient that sits for nearly > hours on a url while trying to download it. > If I am not mistaken there is no timeout property to specify. > How would I go about this? Use a TTimer you start along with your request and disable from OnRequestDone. Should the timer e

[twsocket] HTTPClient

2006-02-14 Thread Marius van Tubbergh
Hi ICS, I am having a problem with HttpClient that sits for nearly hours on a url while trying to download it. If I am not mistaken there is no timeout property to specify. How would I go about this? Thanks for helping! -- To unsubscribe or change your settings for TWSocket mailing list pleas

Re: [twsocket] httpClient, total bytes received / sent

2006-02-08 Thread Wilfried Mestdagh
Hello Marius, As Tibor noticed, just increment a integer and with a Timer you can update the UI every few seconds. This way you will not have performacne degrease. It is not the calculation that take time, it is graphical user interface is very slow. --- Rgds, Wilfried [TeamICS] http://www.overby

Re: [twsocket] httpClient, total bytes received / sent

2006-02-08 Thread Tibor Csonka
If you just inrease an integer in the OnDocData event this shouldn't be a performance issue. Marius van Tubbergh wrote: >>Yes, but be carefull 'cause if you do UI stuff in OnDocData event the >>transfell could slow down awfully! >> >> > >Is there any other way around besides in OnDocData ev

Re: [twsocket] httpClient, total bytes received / sent

2006-02-08 Thread Marius van Tubbergh
> Yes, but be carefull 'cause if you do UI stuff in OnDocData event the > transfell could slow down awfully! Is there any other way around besides in OnDocData event? Because performance is of utter most importance to me. -- To unsubscribe or change your settings for TWSocket mailing list p

Re: [twsocket] httpClient, total bytes received / sent

2006-02-08 Thread Tibor Csonka
>OnDocDate event: >- > >TotalReceived := TotalReceived + Len; > >- > > > Yes, but be carefull 'cause if you do UI stuff in OnDocData event the transfell could slow down awfully! -- To unsubscribe or change your settings for TWSocket mailing list

[twsocket] httpClient, total bytes received / sent

2006-02-08 Thread Marius van Tubbergh
Hi all, I want to get the total bytes sent and received while downloading a web page. On the OnDocData I have write the Len value in a label to display while downloading. But this does not display correctly as the Len value jumps up and down when downloading a URL. Should I accummulate the Len

Re: [twsocket] HTTPClient

2005-04-04 Thread GSE Sas
al Message - From: "Nicholas Sherlock" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, April 04, 2005 9:37 PM Subject: Re: [twsocket] HTTPClient But how do you know if you have all of that file downloaded? :). Suggestion: First bit of file is an integer

Re: [twsocket] HTTPClient

2005-04-04 Thread Nicholas Sherlock
But how do you know if you have all of that file downloaded? :). Suggestion: First bit of file is an integer which contains the file length. If you download less than 4 bytes, it's incomplete. If you download more than 4 bytes, you now know what the length of the file should be and can check it

Re: [twsocket] HTTPClient

2005-04-04 Thread GSE Sas
, April 04, 2005 6:30 PM Subject: Re: [twsocket] HTTPClient Hello Robert, If the server does not give you the length, then it is impossible to know. ps: please dont reply on a thread if you start a new topic. Many people will not see your question if they use an email reader that sort on topic and whe

Re: [twsocket] HTTPClient

2005-04-04 Thread Wilfried Mestdagh
Hello Robert, If the server does not give you the length, then it is impossible to know. ps: please dont reply on a thread if you start a new topic. Many people will not see your question if they use an email reader that sort on topic and when they dont follow the topic. I only saw it by accident

[twsocket] HTTPClient

2005-04-04 Thread GSE Sas
How is possible to know if the full zipped file is downloaded? I've not info about the file size in the web site. Tks Robert -- 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 --

[twsocket] HTTPClient

2005-04-04 Thread GSE Sas
How is possible to know if the full zipped file is downloaded? I've not info about the file size in the web site. Tks Robert -- 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 --