Re: [twsocket] Bug found in THttpCli--seeking solution, please help!
Hello, Thanks for the fix but I just woke up and the zaman.com.tr newspaper site seems to be down right now for me to test!! :((( Will let you know. ;) 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
Re: [twsocket] Bug found in THttpCli--seeking solution, please help!
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
Re: [twsocket] Bug found in THttpCli--seeking solution, please help!
- Original Message - From: Fastream Technologies [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, October 09, 2006 5:21 PM Subject: [twsocket] Bug found in THttpCli--seeking solution, please help! Dear ICS People, Please use the THttpCli demo to navigate to http://www.zaman.com.tr/pics . This Apache server returns a chunked encoded response of 301--a redirection to http://www.zaman.com.tr/pics/ but the component cannot understand the header ends and data starts!! Looking forward to your attention. Best Regards, SubZero Confirmed : tested in v5 and v6. Version 5 works as aspected Version 6 not. Frans -- 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
Re: [twsocket] Bug found in THttpCli--seeking solution, please help!
Please use the THttpCli demo to navigate to http://www.zaman.com.tr/pics . This Apache server returns a chunked encoded response of 301--a redirection to http://www.zaman.com.tr/pics/ but the component cannot understand the header ends and data starts!! Confirmed : tested in v5 and v6. Version 5 works as aspected Version 6 not. The bug is in THttpCli.GetHeaderLineNext. I checked V5 and V6 and the code is the same. Which V5 version are you using ? I mean which HttpProt.pas version do you have ? I have V1.93. -- 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
Re: [twsocket] Bug found in THttpCli--seeking solution, please help!
- Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, October 09, 2006 6:36 PM Subject: Re: [twsocket] Bug found in THttpCli--seeking solution, please help! Please use the THttpCli demo to navigate to http://www.zaman.com.tr/pics . This Apache server returns a chunked encoded response of 301--a redirection to http://www.zaman.com.tr/pics/ but the component cannot understand the header ends and data starts!! Confirmed : tested in v5 and v6. Version 5 works as aspected Version 6 not. The bug is in THttpCli.GetHeaderLineNext. I checked V5 and V6 and the code is the same. Which V5 version are you using ? I mean which HttpProt.pas version do you have ? I have V1.93. 1.87 -- 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
Re: [twsocket] Bug found in THttpCli--seeking solution, please help!
- Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, October 09, 2006 7:36 PM Subject: Re: [twsocket] Bug found in THttpCli--seeking solution, please help! : Please use the THttpCli demo to navigate to http://www.zaman.com.tr/pics : . : This Apache server returns a chunked encoded response of 301--a : redirection : to http://www.zaman.com.tr/pics/ but the component cannot understand the : header ends and data starts!! : : Confirmed : tested in v5 and v6. Version 5 works as aspected Version 6 : not. : : The bug is in THttpCli.GetHeaderLineNext. : I checked V5 and V6 and the code is the same. : Which V5 version are you using ? I mean which HttpProt.pas version do you : have ? I have V1.93. I have V6 1.91. Best Regards, SZ -- 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
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. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, October 09, 2006 8:08 PM Subject: Re: [twsocket] Bug found in THttpCli--seeking solution, please help! Which V5 version are you using ? I mean which HttpProt.pas version do you have ? I have V1.93. 1.87 OK, thanks. It is a rather old version. I found it in my archives from 2005. I will try to see which change has been done which break the code. -- [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
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
Re: [twsocket] Bug found in THttpCli--seeking solution, please help!
Keep-alive also exists in most HTTP/1.0 as well. It is just not the default option. Best Regards, SZ - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, October 09, 2006 9:20 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. : : -- : Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html : -- : [EMAIL PROTECTED] : http://www.overbyte.be : : : : - Original Message - : From: Francois PIETTE [EMAIL PROTECTED] : To: ICS support mailing twsocket@elists.org : Sent: Monday, October 09, 2006 8:08 PM : Subject: Re: [twsocket] Bug found in THttpCli--seeking solution, please : help! : : : Which V5 version are you using ? I mean which HttpProt.pas version do : you : have ? I have V1.93. : : 1.87 : : OK, thanks. : It is a rather old version. I found it in my archives from 2005. : I will try to see which change has been done which break the code. : : -- : [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