Got 0 when using HttpURLConnection.getResponseCode ()
<p>I`m using the class HttpURLConnection this way:</p>

<pre><code>HttpURLConnection con=(HttpURLConnection) servlet.openConnection();
int conResponseCode = con.getResponseCode();
</code></pre>

<p>Sometimes I`m getting conResponseCode as <strong>0</strong>.</p>

<p>I tried to look in the net, and couldnt find what it means?</p>

<p>any idea why it occours? and what it states for?</p>

<p>Thanks,
ray.</p>
