Question: Modify the WebGet program to print only the HTTP header of the returned HTML page. The HTTP header is the beginning of the response data.

Modify the WebGet program to print only the HTTP header of the returned HTML page. The HTTP header is the beginning of the response data. It consists of several lines, such as

HTTP/1.1 200 OK Date: Tue, 14 Apr 2015 16:10:34 GMT Server: Apache/1.3.19

HTTP/1.1 200 OK Date: Tue, 14 Apr 2015 16:10:34 GMT Server: Apache/1.3.19 (Unix) Cache-Control: max-age=86400 Expires: Wed, 15 Apr 2015 16:10:34 GMT Connection: close Content-Type: text/html followed by a blank line.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The WebGet program mentioned seems to be a hypothetical or specific tool used to fetch web pages fro... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!