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

2012-02-09 Thread Mattias Gaertner
On Thu, 9 Feb 2012 09:43:55 +0100 (CET) Michael Van Canneyt wrote: > > > On Thu, 9 Feb 2012, Mattias Gaertner wrote: > > > On Tue, 7 Feb 2012 10:33:04 +0100 > > Rainer Stratmann wrote: > > >[...] > >> If you have no content-length then mostly in the header ist a > >> field 'Transfer-Encoding:

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

2012-02-09 Thread Michael Van Canneyt
On Thu, 9 Feb 2012, Mattias Gaertner wrote: On Tue, 7 Feb 2012 10:33:04 +0100 Rainer Stratmann wrote: Am Monday 19 December 2011 01:22:18 schrieb Mattias Gaertner: Hi, For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jetty".

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

2012-02-08 Thread Mattias Gaertner
On Tue, 7 Feb 2012 10:33:04 +0100 Rainer Stratmann wrote: > Am Monday 19 December 2011 01:22:18 schrieb Mattias Gaertner: > > Hi, > > > > For some reason TFPHTTPClient.Post hangs when accessing a "solr" > > server over "tomcat". It works with "solr" over "jetty". > > "curl" works fine with both,

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

2012-02-07 Thread Rainer Stratmann
Am Monday 19 December 2011 01:22:18 schrieb Mattias Gaertner: > Hi, > > For some reason TFPHTTPClient.Post hangs when accessing a "solr" > server over "tomcat". It works with "solr" over "jetty". > "curl" works fine with both, so I guess the tomcat server works > normally. > > Here is the code: > >

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

2012-02-06 Thread Mattias Gaertner
On Tue, 7 Feb 2012 01:47:52 +0100 Mattias Gaertner wrote: > On Mon, 19 Dec 2011 10:39:09 +0100 (CET) > michael.vancann...@wisa.be wrote: > > >[...] > > What does 'strace' say ? > > Same happens on fpc wiki: uses Classes, SysUtils, fphttpclient; ... var Response: TStringStream; client: TFPH

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

2012-02-06 Thread Mattias Gaertner
On Mon, 19 Dec 2011 10:39:09 +0100 (CET) michael.vancann...@wisa.be wrote: >[...] > What does 'strace' say ? Same happens on fpc wiki: Here is the strace: sendto(3, "GET /index.php?title=Special:Exp"..., 135, 0, NULL, 0) = 135 recvfrom(3, "HTTP/1.1 200 OK\r\nDate: Tue, 07 F"..., 4096, 0, NULL,

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

2011-12-19 Thread michael . vancanneyt
On Mon, 19 Dec 2011, Mattias Gaertner wrote: On Mon, 19 Dec 2011 09:27:16 +0100 (CET) michael.vancann...@wisa.be wrote: On Mon, 19 Dec 2011, Mattias Gaertner wrote: Hi, For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jett

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

2011-12-19 Thread Mattias Gaertner
On Mon, 19 Dec 2011 09:27:16 +0100 (CET) michael.vancann...@wisa.be wrote: > > > On Mon, 19 Dec 2011, Mattias Gaertner wrote: > > > Hi, > > > > For some reason TFPHTTPClient.Post hangs when accessing a "solr" > > server over "tomcat". It works with "solr" over "jetty". > > "curl" works fine wit

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

2011-12-19 Thread michael . vancanneyt
On Mon, 19 Dec 2011, Mattias Gaertner wrote: Hi, For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jetty". "curl" works fine with both, so I guess the tomcat server works normally. Here is the code: client:=TFPHTTPClient.Cre

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

2011-12-18 Thread Mattias Gaertner
Hi, For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jetty". "curl" works fine with both, so I guess the tomcat server works normally. Here is the code: client:=TFPHTTPClient.Create(nil); client.RequestHeaders.Add('Content-