By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,034 Members | 820 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,034 IT Pros & Developers. It's quick & easy.

URLConnection.getHeaderField(0)

P: n/a
Hi,

The getHeaderField(0) of class URLConnection in java.net package
returns a String which provides status code. An example of returned
string is : "HTTP/1.0 200 OK". The status code 200 mean success. Does
any body know when this method will return a null value? Since I am
not getting an IOException, I am sure that connection logic is file
and I have a valid connection.

Thanks,
Prabhat
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.