Hello Francois,

Yes this fix does the job. I hope it won't break somewhere else (a problem 
we live with our code sometimes ;) ).

Best Regards,

SZ

----- Original Message ----- 
From: "Francois PIETTE" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Monday, October 09, 2006 9:35 PM
Subject: Re: [twsocket] Bug found in THttpCli--seeking solution, please 
help!


:> Actually V1.87 has the same behaviour.
: > I found that it works when you select HTTP/1.0 and it doesn't work with
: > HTTP/1.1, no matter which component version has been used. It is related
: > to
: > the fact the component close or not the connection before relocation. I
: > think the bug has always been there with chunked mode tranfer when the
: > last
: > header packet contain the first part of the body.
:
: I think I've fixed the problem.
: In THttpCli.GetHeaderLineNext change as below:
:
:        { FContentLength = -1 when server doesn't send a value }
:        if ((FContentLength = -1) and            { Added 12/03/2004 }
:            (FTransferEncoding <> 'chunked') and { Added 09/10/2006 }
: <===== ADDED
:            ((FStatusCode < 200) or              { Added 12/03/2004 }
:             (FStatusCode = 204) or              { Added 12/03/2004 }
:             (FStatusCode = 301) or              { Added 06/10/2004 }
:             (FStatusCode = 302) or              { Added 06/10/2004 }
:             (FStatusCode = 304) or              { Added 12/03/2004 }
:             (FStatusCode = 401) or              { Added 12/28/2005 }{AG
: 12/28/05}
:             (FStatusCode = 407)))               { Added 12/28/2005 }{AG
: 12/28/05}
:           or
:            (FContentLength = 0)
:           or
:            (FRequestType = httpHEAD) then begin
:
: Same change in both V5 and V5.
: Please try and tell me if it works for you (The relocation target is a
: forbidden page here).
:
: --
: Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
: --
: [EMAIL PROTECTED]
: http://www.overbyte.be
:
:
: -- 
: 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 

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

Reply via email to