Re: Chunked encoding header being ser when using AbstractClassicEntityConsumer / AbstractClassicEntityProducer causing POST data loss

2023-02-11 Thread Oleg Kalnichevski
On Sat, 2023-02-11 at 23:05 +0530, sreenivas somavarapu wrote: > Hi Oleg, > > Thank you for your reply. > > Just fyi. We were following the migration guide list on hc.apache.org > website > https://hc.apache.org/httpcomponents-client-5.2.x/migration-guide/migration-to-async-streaming.html > . >

Re: Chunked encoding header being ser when using AbstractClassicEntityConsumer / AbstractClassicEntityProducer causing POST data loss

2023-02-11 Thread sreenivas somavarapu
Hi Oleg, Thank you for your reply. Just fyi. We were following the migration guide list on hc.apache.org website https://hc.apache.org/httpcomponents-client-5.2.x/migration-guide/migration-to-async-streaming.html. We will try to implement custom AsyncEntityProducer similar to

Re: Chunked encoding header being ser when using AbstractClassicEntityConsumer / AbstractClassicEntityProducer causing POST data loss

2023-02-11 Thread Oleg Kalnichevski
On Sat, 2023-02-11 at 22:21 +0530, sreenivas somavarapu wrote: > Hi Oleg, > > There is a *getContentLength* method in > *AbstractClassicEntityProducer* which > is final and can’t be overwritten (see below) and always return -1 > and also > there is no variable which holds content length to

Re: Chunked encoding header being ser when using AbstractClassicEntityConsumer / AbstractClassicEntityProducer causing POST data loss

2023-02-11 Thread sreenivas somavarapu
Hi Oleg, There is a *getContentLength* method in *AbstractClassicEntityProducer* which is final and can’t be overwritten (see below) and always return -1 and also there is no variable which holds content length to overwrite it. If we add ContentLength header to request builder we get an exception

Re: Chunked encoding header being ser when using AbstractClassicEntityConsumer / AbstractClassicEntityProducer causing POST data loss

2023-02-11 Thread Oleg Kalnichevski
On Sat, 2023-02-11 at 11:13 +0530, sreenivas somavarapu wrote: > Hi Team, > > We are currently trying to implement Apache HTTP Async Client API for > handling HTTP 1.1 and HTTP 2.0 request (Using Servlet request and > response). We have implemented classes using > *AbstractClassicEntityConsumer*