HttpURLConnection.getResponseMessage

HttpURLConnection.getResponseMessage

Class Overview | Class Members | This Package | All Packages

Syntax
public String getResponseMessage() throws IOException
Description
Gets the HTTP response message, if any, returned along with the response code from a server. From responses like:
 HTTP/1.0 200 OK
 HTTP/1.0 404 Not Found
 
Extracts the Strings "OK" and "Not Found" respectively. Returns null if none could be discerned from the responses (the result was not valid HTTP).