It gives you direct access to the HTTP contents and headers. This method blocks until the contents of the response have been fully received.
Returns null if an error is detected while reading or interpreting the response.
Opens a socket connection to the server indicated by the receiver's host name and port number and writes aRequest to that socket. Returns true if the socket is being held open for a subsequent invocation of sendRequest , or false if is has been closed. Use the setKeepAliveEnabled method to control whether the socket is to be held open. Throws an exception if the socket connection cannot be established. Sets the connection timeout interval to timeout in seconds.