ContentLength becomes -1 while reading through http request
<p>I am reading an <strong>generated xml</strong> output returned from php file in my android app as below</p>

<pre><code>URL u = new URL("http://www.abcdefg.com/hijklm/nopqr.php");
URLConnection uc = u.openConnection();
String contentType = uc.getContentType();
int contentLength = uc.getContentLength();
</code></pre>

<p>In php file xml is dynamically generated. The problem is the value of <strong>contentLength becomes -1 when size of xml increses</strong>. I have observed that when size of xml increses more than 7kb value of contentLength variable contain -1.</p>

<p>I infer that it may exceeding the limit of header size but not sure. could anyone explain me 
what should I do for reading large xml content ........?</p>
