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

Reply via email to