Sorry for replying to my own post, but it seems that this is a problem
with the version of httpclient/httpcore that is installed with r1.1 of
the SDK.

If I download the latest verison: Core 4.0 and Client 4.0-Beta2,
everything works fine on my Linux desktop.  There is a line in the
release note of Core 4.0:

* [HTTPCORE-175] Chunk decoders no longer accept truncated chunks as
valid input.
  Contributed by Oleg Kalnichevski <olegk at apache.org>

That makes me think this has been fixed in that version.

So my question to the group are:
1, How do I tell what version of libraries are installed on the
system?
2, Is it possible for me to upgrade libraries on the system?  If so,
how?
3, If I have to wait for the libraries to be upgraded, is there a
release schedule I can track anywhere?

Cheers

Matt

On Mar 4, 5:40 pm, m5p3nc3r <[email protected]> wrote:
> Hi Guys
>
> I am having issues retrieving the contents of a chunk encoded web
> page. all pages that I try to retrieve throw:
>   org.apache.http.MalformedChunkCodingException:Chunkedstream ended
> unexpectedly
>
> If I retrieve a page with no chunk encoding, the code works fine.
>
> HttpClient httpClient=new DefaultHttpClient();
> HttpGet httpGet=new HttpGet(url);
> ResponseHandler<String> rh=new BasicResponseHandler();
> String response=httpClient.execute(httpGet,rh);
>
> This will work withwww.nds.com(no chunk encoding)
> but fail withwww.google.co.uk(chunk encoding)
>
> Now, I am assuming this is a problem with the apache httpclient
> library, but wanted to know if anyone else has seen this problem and
> if there is a way of working around it in the current release.
>
> I am using android-sdk-linux_x86-1.1_r1
>
> Regards
>
> Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to