URLConnection.getHeaderField(0)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • prabhat

    URLConnection.getHeaderField(0)

    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
Working...