title: Parsing the response from post method
body: <p>i am posting the data to a server and i get the post data back in form of response...
  I use this code</p>
  
  <pre><code>PostMethod post = new PostMethod(this._serverUrl);
  
          InputStream is=null;
          is = new ByteArrayInputStream(postData.getBytes("UTF-8"));
  
          post.setRequestEntity(new InputStreamRequestEntity(is));
          post.setRequestHeader("Content-type", "text/xml; charset=ISO-8859-1");
  
          HttpClient httpclient = new HttpClient();
  
          int result = httpclient.executeMethod(post);
  
          String response="";
          response    =   post.getResponseBodyAsString();
  </code></pre>
  
  <p>I have used commons apache httpclient to do posting....
  here i get response as</p>
  
  <pre><code>03-31 17:53:49.192: INFO/Response(2237): &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  03-31 17:53:49.192: INFO/Response(2237): &lt;AndroidGame&gt;
  03-31 17:53:49.192: INFO/Response(2237):   &lt;Result&gt;0&lt;/Result&gt;
  03-31 17:53:49.192: INFO/Response(2237):   &lt;ErrorCode&gt;509&lt;/ErrorCode&gt;
  03-31 17:53:49.192: INFO/Response(2237):   &lt;ErrorMsg&gt;You are using wrong Super Password&lt;/ErrorMsg&gt;
  03-31 17:53:49.192: INFO/Response(2237): &lt;/AndroidGame&gt;
  </code></pre>
  
  <p>But i need to get the response in String.... I am not able to get the response in a single string... it comes in chunks... Can anyone help me in this</p>