Re: [twsocket] Chunked encoding with THttpCli
On 03-Dec-05 12:56:55 Fastream Technologies wrote: Hello, Does THttpCli support chunked encoding? If so, how do we indicate we can accept it from server? The history say that it is introduced on December 28, 2003. Looking on the code it seems that there is no way to automatically add the transfer-encoding header in the request, so you have to add it yourself using the OnHeaderData event. If the server then answer with chunked then the component should be able to handle that kind of transfer. Bye, Maurizio. -- 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] Chunked encoding with THttpCli
Does THttpCli support chunked encoding? Yes, it is supported for answer only. If so, how do we indicate we can accept it from server? No need to indicate it. The server tell the client using TransferEncoding header line which is detectec by the component. Search for 'TransferEncoding' in httpprot.pas to see how it is handled. -- 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] Chunked encoding with THttpCli
Does THttpCli support chunked encoding? If so, how do we indicate we can accept it from server? No. If such an encoding actually exists, the latest client beta supports content coding 'plugins', so you can write a new unit based on the current GZIP coding version, and simply add it to the project, so it will be automatically used by THttpCli and the Accept-Encoding: header added to requests with whatever code is used for 'chunked'. Angus -- 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] Chunked encoding with THttpCli
Hi, Chunked is a transfer-encoding not content. It means there is no content-length in the response header and the client simply gets the (size of) each packet separately and then cuts the connection when the server tells so. Francois, any idea? Chunked encoding is a *must* for http/1.1 compatibility. Best Regards, SubZ - Original Message - From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] To: twsocket@elists.org Sent: Saturday, December 03, 2005 3:59 PM Subject: Re: [twsocket] Chunked encoding with THttpCli Does THttpCli support chunked encoding? If so, how do we indicate we can accept it from server? No. If such an encoding actually exists, the latest client beta supports content coding 'plugins', so you can write a new unit based on the current GZIP coding version, and simply add it to the project, so it will be automatically used by THttpCli and the Accept-Encoding: header added to requests with whatever code is used for 'chunked'. Angus -- 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] Chunked encoding with THttpCli
Chunked is a transfer-encoding not content. It means there is no content-length in the response header and the client simply gets the (size of) each packet separately and then cuts the connection when the server tells so. If you think it is so important, why don't you actually do something useful for ICS and actually implement it, instead of just complaining all the time. Angus -- 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] Chunked encoding with THttpCli
SEE MY MESSAGE PRIOR TO YOURS. SZ - Original Message - From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] To: twsocket@elists.org Sent: Saturday, December 03, 2005 6:27 PM Subject: Re: [twsocket] Chunked encoding with THttpCli Chunked is a transfer-encoding not content. It means there is no content-length in the response header and the client simply gets the (size of) each packet separately and then cuts the connection when the server tells so. If you think it is so important, why don't you actually do something useful for ICS and actually implement it, instead of just complaining all the time. Angus -- 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