Hows your Java?
The HTTPClient module makes use of the Apache Commons HTTPClient and
that warning that you see is one of theirs, but it is only a warning.
If you wanted to get it to go away, you could create a buffer and read
the response body into there before then working with it, at the
present I just grabbed it as a string (deprecated). Its not really
anything to worry about at the moment.
Regarding content-length, you could modify the post function in the
HTTPClient module to do this. But conversely there is a whole raft of
reasons why you should not rely on content-length headers - a quick
Google will tell you all about it.
2008/5/8 Danny Kruitbosch <
exist@...>:
> Hi,
>
> I've written a query that posts an SOAP message to an external service
> and than uses that data. I've used the HTTPclient module to post the
> soap request. In the console output I get this message:
>
> 08 May 2008 11:54:47,036 [P1-4] WARN (HttpMethodBase.java
> [getResponseBody]:676) - Going to buffer response body of large or
> unknown size. Using getResponseBodyAsStream instead is recommended.
>
> Can someone explain what this means? And is there any way to calculate
> the content -length of my POST request so I can set this in the HTTP
> headers before I post the data?
>
> Thanks,
>
> Danny
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone> _______________________________________________
> Exist-open mailing list
>
Exist-open@...
>
https://lists.sourceforge.net/lists/listinfo/exist-open>
--
Adam Retter
eXist Developer
{ England }
adam@...
irc://irc.freenode.net/existdb
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open