[fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Feb 9 10:08:20 CET 2012


On Thu, 9 Feb 2012 09:43:55 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:

> 
> 
> On Thu, 9 Feb 2012, Mattias Gaertner wrote:
> 
> > On Tue, 7 Feb 2012 10:33:04 +0100
> > Rainer Stratmann <RainerStratmann at t-online.de> wrote:
> >
>[...]
> >> If you have no content-length then mostly in the header ist a
> >> field 'Transfer-Encoding: chunked'. Then the content is send in snippets. It
> >> is exactly defined how long to read until there is no more content.
> >>
> >> http://en.wikipedia.org/wiki/Chunked_transfer_encoding
> >
> > Thanks for the hint. I implemented chunked reading and now it works
> > fast without timeouts. :)
> 
> Did you implement this in TFPCustomHTTPClient itself ?

Yes, it seems the right place.

> If so, please provide a patch.

I will do after some more tests.

Mattias



More information about the fpc-pascal mailing list