Hi,

I am facing a very odd problem which I don't understand at all. I am trying
to use HttpClient to do some things on a MediaWiki site (that's the software
running Wikipedia but I am also using it for another site). I wrote some
code to login and retrieve a page using getReponseBodyAsStream() and it's
working fine when I am using it on Wikipedia.

However, using the very same code on my own site (or on a test server on my
machine) produces strange results. The stream seems to be empty,
mystream.available() returns 0, but getResponseBodyAsString() does return
the content of the page. In both cases, status code is OK (200) and I cannot
see any difference in the wire log (the page gets transmitted even when I
cannot access it from the stream). Obviously that could be some kind of
issue with the server config but I have the same problem with two very
different servers (one Linux, Apache 1.something, old Mediawiki and one MS
Wndows, all software freshly installed last week) and it's all working just
fine when used manually with a web browser (namely Firefox).

I could not find anything about that problem in the mailling list or the
documentation. Did somebody already encounter that kind of behaviour ? What
could be going on ?

Thanks a lot for any suggestion,
Gaƫl

Reply via email to