Re: [twsocket] DLL implementation advice (or example)...

2011-09-11 Thread Wilfried Mestdagh
Hi Adam,

You have to make a custom message handler and post a message to it. Then
this handler will execute outside the event. Something like this:

const
WM_RECONNECT = WM_USER + 1;
private
procedure WMReconnect(var Msg: TMessage); message WM_RECONNECT;

procedure TSomething.SocketSessionClosed;
begin
PostMessage(Handle, WM_RECONNECT, 0 , 0);

If your TSomething does not have a Handle then you have to create one with
AllocateHWND procedure (and free it later) and you have to make a WinProc
procedure.

If it is threaded code then you also have to make a message pump. Please ask
if something is not clear.

-- 
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be


> -Oorspronkelijk bericht-
> Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> Namens Adam Burgoyne
> Verzonden: zondag 11 september 2011 16:42
> Aan: 'ICS support mailing'
> Onderwerp: Re: [twsocket] DLL implementation advice (or example)...
> 
> Hi, Wilfried
> 
> I'm pleased to say that I've made good progress with the system so far
> but
> I'm not sure how to best implement server alternation.
> 
> Very simply, the current system works with a main server and a fail-
> over
> server.
> 
> All initial connections are made to the main server (I have this part
> working fine) but, if the main server is unavailable then clients will
> attempt to connect to the fail-over server.
> 
> What I need the client to do is try connecting to the other server if
> the
> current connection cannot be made within a few seconds or if the
> current
> connection gets dropped for any reason.
> 
> I've started playing around with it but I'm not sure I'm doing things
> correctly.
> 
> I saw a post (from you I think) in the ICS help that mentioned sending
> a
> message from the "sessionclosed" procedure but it didn't specify what
> message to send.
> 
> Is there a list of messages that can be used with ICS?
> 
> Regards, Adam
> 
> 
> -Original Message-
> From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> On
> Behalf Of Wilfried Mestdagh
> Sent: 09 September 2011 09:04
> To: 'ICS support mailing'
> Subject: Re: [twsocket] DLL implementation advice (or example)...
> 
> Hi Adam,
> 
> > The problem is that the DLL is quite unstable so I was trying to use
> a
> > different approach and hoping to get better stability.
> 
> Are we talking about TWSocket in your second approach?
> 
> > Right now, I have the basic DLL test project running - it is
> > connecting to my server but the worker thread is not terminating so
> > either the server is not sending a response or the ondatareceived
> > event is not triggering.
> 
> I'm not sure if a TDatamodule is thread safe. Anyway I never used it.
> Note
> that what you create in a constructor is in main thread context. You
> have to
> create (and destroy) the components in the Execute method of that
> thread. If
> you do not then you have a false thread.
> 
> --
> mvg, Wilfried
> 
> --
> 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
> 
> --
> 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

--
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] DLL implementation advice (or example)...

2011-09-11 Thread Adam Burgoyne
Hi, Wilfried

I'm pleased to say that I've made good progress with the system so far but
I'm not sure how to best implement server alternation.

Very simply, the current system works with a main server and a fail-over
server.

All initial connections are made to the main server (I have this part
working fine) but, if the main server is unavailable then clients will
attempt to connect to the fail-over server.

What I need the client to do is try connecting to the other server if the
current connection cannot be made within a few seconds or if the current
connection gets dropped for any reason.

I've started playing around with it but I'm not sure I'm doing things
correctly.

I saw a post (from you I think) in the ICS help that mentioned sending a
message from the "sessionclosed" procedure but it didn't specify what
message to send.

Is there a list of messages that can be used with ICS?

Regards, Adam


-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Wilfried Mestdagh
Sent: 09 September 2011 09:04
To: 'ICS support mailing'
Subject: Re: [twsocket] DLL implementation advice (or example)...

Hi Adam,

> The problem is that the DLL is quite unstable so I was trying to use a 
> different approach and hoping to get better stability.

Are we talking about TWSocket in your second approach?

> Right now, I have the basic DLL test project running - it is 
> connecting to my server but the worker thread is not terminating so 
> either the server is not sending a response or the ondatareceived 
> event is not triggering.

I'm not sure if a TDatamodule is thread safe. Anyway I never used it. Note
that what you create in a constructor is in main thread context. You have to
create (and destroy) the components in the Execute method of that thread. If
you do not then you have a false thread.

--
mvg, Wilfried

--
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

--
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] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Arno Garrels
Fastream Technologies wrote:
> Sorry my error. Thank you so much for the fix! 

Just checked in the fix, source available via SVN now
or included in next daily snapshot:
http://wiki.overbyte.be/wiki/index.php/ICS_Download

-- 
Arno Garrels

> 
> Subzero
> On Sun, Sep 11, 2011 at 11:01, Arno Garrels 
> wrote: 
> 
>> Arno Garrels wrote:
>>> Fastream Technologies wrote:
 I have 7.17 but it still does not work! Could you send me the
 entire unit so that I could compare?
>>> 
>>> 
>> http://svn.overbyte.be:8443/svn/ics/trunk/Delphi/Vc32/OverbyteIcsHttpProt.pas
>> 
>> Of course you have to add the three lines fix from my first reply!
>> 
>>> 
>>> I use the OverbyteIcsHttpTst demo out of the box, against
>>> http://www.duodata.de/xtest.php?m=1
>>> 
>>> where "m" can be 1-16
>>> 
>>> Can somebody else confirm?
>>> 
>>> --
>>> Arno Garrels
>>> 
>>> 
 Best Regards,
 
 Gorkem Ates
 *Fastream Technologies*
 *Software IQ: Innovation & Quality*
 http://www.iqproxyserver.com | http://www.fastream.com |
 twitter.com/fastream
 *Pbx:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
 Join *IQ Proxy Server email list *at
 http://groups.yahoo.com/group/IQProxyServer
 On Sun, Sep 11, 2011 at 10:33, Arno Garrels 
 wrote:
 
> Fastream Technologies wrote:
>> Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
>> fail. Best Regards,
> 
> Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should
> work as well.
> 
> 
> 
>> 
>> SZ
>> On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
>> wrote:
>> 
>>> Fastream Technologies wrote:
 Hello,
 
 I have had a coder code a PHP script for this purpose. In the
 script the buggy cases are marked in source. Just POSTed with
 ICS Post demo to IIS 7.5 and the bug showed its ugly face.
 Since we have a big customer awaiting the fix, if somebody
 could sacrifice his Sunday to help fix it out, we will donate
 $100 to him to his Paypal or share-it or whatever. The test
 case is at, 
>>> 
>>> Try this fix:
>>> 
>>> procedure THttpCli.GetBodyLineNext;
>>> [..]
>>>{ Here we simply ignore until next LF }
>>>while N > 0 do begin
>>> //  if P^ = #10 then begin
>>>if Ord(FReceiveBuffer[P]) = 10 then begin //
>>>FP 09/09/06 if FChunkLength = 0 then
>>> // <= AG 09/11/2011
>>>FChunkState := httpChunkDone  //
>>> <= AG 09/11/2011
>>>else  //
>>> <= AG 09/11/2011
>>>FChunkState := httpChunkGetData;
>>>Inc(P);
>>>Dec(N);
>>>break;
>>>end;
>>> --
>>> Arno Garrels
>>> --
>>> 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
> --
> 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
>> --
>> 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
--
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] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Arno Garrels
Fastream Technologies wrote:
> Sorry my error. Thank you so much for the fix! Please tell me your
> Paypal email.

Thanks, done.

-- 
Arno Garrels


> Best Regards,




> 
> Subzero
> On Sun, Sep 11, 2011 at 11:01, Arno Garrels 
> wrote: 
> 
>> Arno Garrels wrote:
>>> Fastream Technologies wrote:
 I have 7.17 but it still does not work! Could you send me the
 entire unit so that I could compare?
>>> 
>>> 
>> http://svn.overbyte.be:8443/svn/ics/trunk/Delphi/Vc32/OverbyteIcsHttpProt.pas
>> 
>> Of course you have to add the three lines fix from my first reply!
>> 
>>> 
>>> I use the OverbyteIcsHttpTst demo out of the box, against
>>> http://www.duodata.de/xtest.php?m=1
>>> 
>>> where "m" can be 1-16
>>> 
>>> Can somebody else confirm?
>>> 
>>> --
>>> Arno Garrels
>>> 
>>> 
 Best Regards,
 
 Gorkem Ates
 *Fastream Technologies*
 *Software IQ: Innovation & Quality*
 http://www.iqproxyserver.com | http://www.fastream.com |
 twitter.com/fastream
 *Pbx:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
 Join *IQ Proxy Server email list *at
 http://groups.yahoo.com/group/IQProxyServer
 On Sun, Sep 11, 2011 at 10:33, Arno Garrels 
 wrote:
 
> Fastream Technologies wrote:
>> Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
>> fail. Best Regards,
> 
> Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should
> work as well.
> 
> 
> 
>> 
>> SZ
>> On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
>> wrote:
>> 
>>> Fastream Technologies wrote:
 Hello,
 
 I have had a coder code a PHP script for this purpose. In the
 script the buggy cases are marked in source. Just POSTed with
 ICS Post demo to IIS 7.5 and the bug showed its ugly face.
 Since we have a big customer awaiting the fix, if somebody
 could sacrifice his Sunday to help fix it out, we will donate
 $100 to him to his Paypal or share-it or whatever. The test
 case is at, 
>>> 
>>> Try this fix:
>>> 
>>> procedure THttpCli.GetBodyLineNext;
>>> [..]
>>>{ Here we simply ignore until next LF }
>>>while N > 0 do begin
>>> //  if P^ = #10 then begin
>>>if Ord(FReceiveBuffer[P]) = 10 then begin //
>>>FP 09/09/06 if FChunkLength = 0 then
>>> // <= AG 09/11/2011
>>>FChunkState := httpChunkDone  //
>>> <= AG 09/11/2011
>>>else  //
>>> <= AG 09/11/2011
>>>FChunkState := httpChunkGetData;
>>>Inc(P);
>>>Dec(N);
>>>break;
>>>end;
>>> --
>>> Arno Garrels
>>> --
>>> 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
> --
> 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
>> --
>> 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
--
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] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Fastream Technologies
Sorry my error. Thank you so much for the fix! Please tell me your Paypal
email.
Best Regards,

Subzero
On Sun, Sep 11, 2011 at 11:01, Arno Garrels  wrote:

> Arno Garrels wrote:
> > Fastream Technologies wrote:
> >> I have 7.17 but it still does not work! Could you send me the entire
> >> unit so that I could compare?
> >
> >
> http://svn.overbyte.be:8443/svn/ics/trunk/Delphi/Vc32/OverbyteIcsHttpProt.pas
>
> Of course you have to add the three lines fix from my first reply!
>
> >
> > I use the OverbyteIcsHttpTst demo out of the box, against
> > http://www.duodata.de/xtest.php?m=1
> >
> > where "m" can be 1-16
> >
> > Can somebody else confirm?
> >
> > --
> > Arno Garrels
> >
> >
> >> Best Regards,
> >>
> >> Gorkem Ates
> >> *Fastream Technologies*
> >> *Software IQ: Innovation & Quality*
> >> http://www.iqproxyserver.com | http://www.fastream.com |
> >> twitter.com/fastream
> >> *Pbx:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
> >> Join *IQ Proxy Server email list *at
> >> http://groups.yahoo.com/group/IQProxyServer
> >> On Sun, Sep 11, 2011 at 10:33, Arno Garrels 
> >> wrote:
> >>
> >>> Fastream Technologies wrote:
>  Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
>  fail. Best Regards,
> >>>
> >>> Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should work
> >>> as well.
> >>>
> >>>
> >>>
> 
>  SZ
>  On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
>  wrote:
> 
> > Fastream Technologies wrote:
> >> Hello,
> >>
> >> I have had a coder code a PHP script for this purpose. In the
> >> script the buggy cases are marked in source. Just POSTed with ICS
> >> Post demo to IIS 7.5 and the bug showed its ugly face. Since we
> >> have a big customer awaiting the fix, if somebody could sacrifice
> >> his Sunday to help fix it out, we will donate $100 to him to his
> >> Paypal or share-it or whatever. The test case is at,
> >
> > Try this fix:
> >
> > procedure THttpCli.GetBodyLineNext;
> > [..]
> >{ Here we simply ignore until next LF }
> >while N > 0 do begin
> > //  if P^ = #10 then begin
> >if Ord(FReceiveBuffer[P]) = 10 then begin // FP
> >09/09/06 if FChunkLength = 0 then
> > // <= AG 09/11/2011
> >FChunkState := httpChunkDone  // <=
> > AG 09/11/2011
> >else  // <=
> > AG 09/11/2011
> >FChunkState := httpChunkGetData;
> >Inc(P);
> >Dec(N);
> >break;
> >end;
> > --
> > Arno Garrels
> > --
> > 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
> >>> --
> >>> 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
> --
> 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
>
--
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] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Arno Garrels
Arno Garrels wrote:
> Fastream Technologies wrote:
>> I have 7.17 but it still does not work! Could you send me the entire
>> unit so that I could compare?
> 
> http://svn.overbyte.be:8443/svn/ics/trunk/Delphi/Vc32/OverbyteIcsHttpProt.pas

Of course you have to add the three lines fix from my first reply!

> 
> I use the OverbyteIcsHttpTst demo out of the box, against
> http://www.duodata.de/xtest.php?m=1
> 
> where "m" can be 1-16
> 
> Can somebody else confirm?
> 
> --
> Arno Garrels
> 
> 
>> Best Regards,
>> 
>> Gorkem Ates
>> *Fastream Technologies*
>> *Software IQ: Innovation & Quality*
>> http://www.iqproxyserver.com | http://www.fastream.com |
>> twitter.com/fastream
>> *Pbx:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
>> Join *IQ Proxy Server email list *at
>> http://groups.yahoo.com/group/IQProxyServer
>> On Sun, Sep 11, 2011 at 10:33, Arno Garrels 
>> wrote:
>> 
>>> Fastream Technologies wrote:
 Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
 fail. Best Regards,
>>> 
>>> Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should work
>>> as well.
>>> 
>>> 
>>> 
 
 SZ
 On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
 wrote:
 
> Fastream Technologies wrote:
>> Hello,
>> 
>> I have had a coder code a PHP script for this purpose. In the
>> script the buggy cases are marked in source. Just POSTed with ICS
>> Post demo to IIS 7.5 and the bug showed its ugly face. Since we
>> have a big customer awaiting the fix, if somebody could sacrifice
>> his Sunday to help fix it out, we will donate $100 to him to his
>> Paypal or share-it or whatever. The test case is at,
> 
> Try this fix:
> 
> procedure THttpCli.GetBodyLineNext;
> [..]
>{ Here we simply ignore until next LF }
>while N > 0 do begin
> //  if P^ = #10 then begin
>if Ord(FReceiveBuffer[P]) = 10 then begin // FP
>09/09/06 if FChunkLength = 0 then
> // <= AG 09/11/2011
>FChunkState := httpChunkDone  // <=
> AG 09/11/2011
>else  // <=
> AG 09/11/2011
>FChunkState := httpChunkGetData;
>Inc(P);
>Dec(N);
>break;
>end;
> --
> Arno Garrels
> --
> 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
>>> --
>>> 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 
--
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] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Arno Garrels
Fastream Technologies wrote:
> I have 7.17 but it still does not work! Could you send me the entire
> unit so that I could compare?

http://svn.overbyte.be:8443/svn/ics/trunk/Delphi/Vc32/OverbyteIcsHttpProt.pas

I use the OverbyteIcsHttpTst demo out of the box, against
http://www.duodata.de/xtest.php?m=1

where "m" can be 1-16 

Can somebody else confirm?

-- 
Arno Garrels


> Best Regards,
> 
> Gorkem Ates
> *Fastream Technologies*
> *Software IQ: Innovation & Quality*
> http://www.iqproxyserver.com | http://www.fastream.com |
> twitter.com/fastream
> *Pbx:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
> Join *IQ Proxy Server email list *at
> http://groups.yahoo.com/group/IQProxyServer
> On Sun, Sep 11, 2011 at 10:33, Arno Garrels 
> wrote: 
> 
>> Fastream Technologies wrote:
>>> Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
>>> fail. Best Regards,
>> 
>> Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should work
>> as well.
>> 
>> 
>> 
>>> 
>>> SZ
>>> On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
>>> wrote:
>>> 
 Fastream Technologies wrote:
> Hello,
> 
> I have had a coder code a PHP script for this purpose. In the
> script the buggy cases are marked in source. Just POSTed with ICS
> Post demo to IIS 7.5 and the bug showed its ugly face. Since we
> have a big customer awaiting the fix, if somebody could sacrifice
> his Sunday to help fix it out, we will donate $100 to him to his
> Paypal or share-it or whatever. The test case is at,
 
 Try this fix:
 
 procedure THttpCli.GetBodyLineNext;
 [..]
{ Here we simply ignore until next LF }
while N > 0 do begin
 //  if P^ = #10 then begin
if Ord(FReceiveBuffer[P]) = 10 then begin // FP
09/09/06 if FChunkLength = 0 then
 // <= AG 09/11/2011
FChunkState := httpChunkDone  // <=
 AG 09/11/2011
else  // <=
 AG 09/11/2011
FChunkState := httpChunkGetData;
Inc(P);
Dec(N);
break;
end;
 --
 Arno Garrels
 --
 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 
>> --
>> 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
--
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] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Fastream Technologies
I have 7.17 but it still does not work! Could you send me the entire unit so
that I could compare?
Best Regards,

Gorkem Ates
*Fastream Technologies*
*Software IQ: Innovation & Quality*
http://www.iqproxyserver.com | http://www.fastream.com |
twitter.com/fastream
*Pbx:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
Join *IQ Proxy Server email list *at
http://groups.yahoo.com/group/IQProxyServer
On Sun, Sep 11, 2011 at 10:33, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
> > fail. Best Regards,
>
> Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should work
> as well.
>
>
>
> >
> > SZ
> > On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
> > wrote:
> >
> >> Fastream Technologies wrote:
> >>> Hello,
> >>>
> >>> I have had a coder code a PHP script for this purpose. In the script
> >>> the buggy cases are marked in source. Just POSTed with ICS Post demo
> >>> to IIS 7.5 and the bug showed its ugly face. Since we have a big
> >>> customer awaiting the fix, if somebody could sacrifice his Sunday to
> >>> help fix it out, we will donate $100 to him to his Paypal or
> >>> share-it or whatever. The test case is at,
> >>
> >> Try this fix:
> >>
> >> procedure THttpCli.GetBodyLineNext;
> >> [..]
> >>{ Here we simply ignore until next LF }
> >>while N > 0 do begin
> >> //  if P^ = #10 then begin
> >>if Ord(FReceiveBuffer[P]) = 10 then begin // FP
> >>09/09/06 if FChunkLength = 0 then
> >> // <= AG 09/11/2011
> >>FChunkState := httpChunkDone  // <= AG
> >> 09/11/2011
> >>else  // <= AG
> >> 09/11/2011
> >>FChunkState := httpChunkGetData;
> >>Inc(P);
> >>Dec(N);
> >>break;
> >>end;
> >> --
> >> Arno Garrels
> >> --
> >> 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
> --
> 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
>
--
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] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Arno Garrels
Fastream Technologies wrote:
> Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
> fail. Best Regards,

Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should work
as well. 



> 
> SZ
> On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
> wrote: 
> 
>> Fastream Technologies wrote:
>>> Hello,
>>> 
>>> I have had a coder code a PHP script for this purpose. In the script
>>> the buggy cases are marked in source. Just POSTed with ICS Post demo
>>> to IIS 7.5 and the bug showed its ugly face. Since we have a big
>>> customer awaiting the fix, if somebody could sacrifice his Sunday to
>>> help fix it out, we will donate $100 to him to his Paypal or
>>> share-it or whatever. The test case is at,
>> 
>> Try this fix:
>> 
>> procedure THttpCli.GetBodyLineNext;
>> [..]
>>{ Here we simply ignore until next LF }
>>while N > 0 do begin
>> //  if P^ = #10 then begin
>>if Ord(FReceiveBuffer[P]) = 10 then begin // FP
>>09/09/06 if FChunkLength = 0 then
>> // <= AG 09/11/2011
>>FChunkState := httpChunkDone  // <= AG
>> 09/11/2011
>>else  // <= AG
>> 09/11/2011
>>FChunkState := httpChunkGetData;
>>Inc(P);
>>Dec(N);
>>break;
>>end;
>> --
>> Arno Garrels
>> --
>> 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
--
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] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Fastream Technologies
Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still fail.
Best Regards,

SZ
On Sun, Sep 11, 2011 at 09:46, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Hello,
> >
> > I have had a coder code a PHP script for this purpose. In the script
> > the buggy cases are marked in source. Just POSTed with ICS Post demo
> > to IIS 7.5 and the bug showed its ugly face. Since we have a big
> > customer awaiting the fix, if somebody could sacrifice his Sunday to
> > help fix it out, we will donate $100 to him to his Paypal or share-it
> > or whatever. The test case is at,
>
> Try this fix:
>
> procedure THttpCli.GetBodyLineNext;
> [..]
>{ Here we simply ignore until next LF }
>while N > 0 do begin
> //  if P^ = #10 then begin
>if Ord(FReceiveBuffer[P]) = 10 then begin // FP 09/09/06
>if FChunkLength = 0 then  // <= AG
> 09/11/2011
>FChunkState := httpChunkDone  // <= AG
> 09/11/2011
>else  // <= AG
> 09/11/2011
>FChunkState := httpChunkGetData;
>Inc(P);
>Dec(N);
>break;
>end;
> --
> Arno Garrels
> --
> 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
>
--
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