On Tue, 2011-03-29 at 13:23 -0700, Adam Hahn wrote:
> Thanks, Oleg. Interestingly, when I use the following code snippet, it works
> without throwing an exception:
> 
>     String url = "
> http://173.193.248.156:8080/x/brs1013?aid=eedcd7b2-001a-4388-9415-f2cd697d7608&buid=&ip=209.117.114.63&ua=Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.15)+Gecko/20110303+Firefox/3.6.15&lang=en_US&url=http://minifb-parking.mindjolt.com/fb/game_iframehtmlad.jsp?gkey=FRZ7GJK9OLYE2VMS&gcat=action&gtitle=Parking+Mania&gdesc=Park+the+car+without+crashing+it.&ts=1299189609250&ad_duration=30&top=true&site=mindjolt.com&pid=9234&frmts=linear15:300x250,linear15&cat=games:casual_games&qual=
> ";
>     HttpClient httpClient = new ContentEncodingHttpClient();
>     HttpGet get = new HttpGet(url);
>     HttpResponse response = httpClient.execute(get);
>     HttpEntity entity = response.getEntity();
>     String content = EntityUtils.toString(entity);
> 
> To the best of my knowledge, this should be the equivalent of the prior code
> snippet (using BasicResponseHandler). I can get by with this workaround, but
> I would like to know if I'm misusing the library, or if is this unexpected
> behavior.
> 
> Thanks,
> Adam
> 

I managed to reproduce the problem when using BasicResponseHandler. This
looks like a bug in HttpClient.

Please raise a JIRA for this issue.

Oleg 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to