Re: [twsocket] HttpCli problem

2006-02-26 Thread Ronny
Thank you, these are just the answers that I need! -Ronny - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, February 26, 2006 11:51 AM Subject: Re: [twsocket] HttpCli problem > >> Here is how I

Re: [twsocket] HttpCli problem

2006-02-26 Thread Francois PIETTE
> Here is how I handle events: > > Objective, to download several files, very similar to the Httpasy demo: > On GoButton.Click: HttpCli.GetASync > OnHeaderEnd: Check if the file to be downloaded is good. If not, ABORT. > OnRequestDone: If ABORT, then clear the file, if not store the downloaded

Re: [twsocket] HttpCli problem

2006-02-26 Thread Ronny
or is there a better method of doing this? - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, February 26, 2006 6:21 AM Subject: Re: [twsocket] HttpCli problem >> Thank you for the feedback, Francoi

Re: [twsocket] HttpCli problem

2006-02-26 Thread Francois PIETTE
uot; Sent: Sunday, February 26, 2006 12:24 AM Subject: Re: [twsocket] HttpCli problem > Thank you for the feedback, Francois and Wilfried. I have not been clear > in > my explination. Let me start again with more detail: > > State: httpReady > I call httpcli.GetASync. > State:

Re: [twsocket] HttpCli problem

2006-02-25 Thread Ronny
riginal Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, February 25, 2006 1:12 PM Subject: Re: [twsocket] HttpCli problem >>> Why use a loop ? >>> Why don't you want to use OnRequestDone event ? > >&

Re: [twsocket] HttpCli problem

2006-02-25 Thread Wilfried Mestdagh
; - Original Message - > From: "Francois PIETTE" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Saturday, February 25, 2006 11:22 AM > Subject: Re: [twsocket] HttpCli problem >> Why use a loop ? >> Why don't you want to

Re: [twsocket] HttpCli problem

2006-02-25 Thread Francois PIETTE
>> Why use a loop ? >> Why don't you want to use OnRequestDone event ? > That is the problem. This routine is called from OnRequestDone. That is > why > I think that there is a bug. OnRequestDone gets called twice for 302s, > but > I have already taken that into account. > Should httpcli.State

Re: [twsocket] HttpCli problem

2006-02-25 Thread Ronny
. - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, February 25, 2006 11:22 AM Subject: Re: [twsocket] HttpCli problem > Why use a loop ? > Why don't you want to use OnRequestDone ev

Re: [twsocket] HttpCli problem

2006-02-25 Thread Francois PIETTE
Why use a loop ? Why don't you want to use OnRequestDone event ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Ronny" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, February 25, 2006 4:57 PM Subject: Re: [twsocket]

Re: [twsocket] HttpCli problem

2006-02-25 Thread Francois PIETTE
> The problem is that the STATE is not ready after the abort, so when I use > httpcli to grab another file after a 302, I would get an error. (http > component busy, I think). > After an abort in such a case, is there anything that I have to do to make > sure that the component is ready for the nex

Re: [twsocket] HttpCli problem

2006-02-25 Thread Wilfried Mestdagh
y happens after a 302, anything else (200, 404, etc) works well.) > -Ronny > - Original Message - > From: "Francois PIETTE" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Saturday, February 25, 2006 3:59 AM > Subject: Re: [twsoc

Re: [twsocket] HttpCli problem

2006-02-25 Thread Ronny
infinite loop if application.processmessages is removed) - Original Message - From: "Ronny" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, February 25, 2006 10:08 AM Subject: Re: [twsocket] HttpCli problem > The problem is that the STATE is not read

Re: [twsocket] HttpCli problem

2006-02-25 Thread Ronny
? (This only happens after a 302, anything else (200, 404, etc) works well.) -Ronny - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, February 25, 2006 3:59 AM Subject: Re: [twsocket] HttpCli problem

Re: [twsocket] HttpCli problem

2006-02-25 Thread Francois PIETTE
> After httpcli.abort is called, the statuscode is normally 404 if the > statuscode before the call is 200. The statuscode is 0 if the original > statuscode is 302. This is causing me problems (i.e. httpcli state is not > ready after an abort is called if the statuscode was 302). See example: >

[twsocket] HttpCli problem

2006-02-24 Thread Ronny
After httpcli.abort is called, the statuscode is normally 404 if the statuscode before the call is 200. The statuscode is 0 if the original statuscode is 302. This is causing me problems (i.e. httpcli state is not ready after an abort is called if the statuscode was 302). See example: log.