April 2019
Beginner to intermediate
386 pages
11h 20m
English
There are numerous other methods that provide additional information regarding the connection and page. The following are a few that may be of interest:
Add the following code to the main function to illustrate these functions for the page. The Date class is used to convert the integer date returned by the last three methods into a more readable form:
System.out.println(httpURLConnection.getContentLength());System.out.println(httpURLConnection.getContentType()); ...
Read now
Unlock full access