I am getting org.apache.http.MalformedChunkCodingException: CRLF expected at end of chunk error in android internet app
<p>I am trying to access the internet from my application.</p>

<blockquote>
  <p>We are using proxy in our company, so i entered the proxy settings for the simulator by using the -http-proxy XXXXX.   </p>
  
  <p>I added the android.permission.INTERNET in android manifest file as well.</p>
  
  <p>When i am trying to access the internet i am getting this exception and my application is getting force closed. </p>
</blockquote>

<p>Note: When i am using the browser application in the Emulator, i am able to access the internet.</p>

<p>I just copy pasted this code 
<a href="http://w3mentor.com/learn/java/android-development/android-http-services/example-of-http-get-request-using-httpclient-in-android/" rel="nofollow">http://w3mentor.com/learn/java/android-development/android-http-services/example-of-http-get-request-using-httpclient-in-android/</a></p>

<p>I am getting the error:
<strong>WARN/System.err(300): org.apache.http.MalformedChunkCodingException: CRLF expected at end of chunk</strong></p>

<p>Please help me in resolving the same.</p>

<p>Thanks &amp; Regards,<br>
SSuman185</p>
