Got -1 from HttpURLConnection getResponseCode()
<p>In my code I use</p>

<pre><code>mHttpConnRespCode = mConnection.getResponseCode();
</code></pre>

<p>to get http response code, where mConnection is HttpURLConnection type.</p>

<p>Sometimes I got -1 as response code. Under what circumstances, mConnection.getResponseCode() returns -1?</p>

<p>Thanks.</p>
