Oregon State University
Oregon State University Home Page
However, this browser should not only display the image, it should also, in a small window above the image, display all HTTP headers received from the server serving the image.
For instance, an HTTP request for http://www.google.com/intl/en_ALL/images/logo.gif, results in the following response headers being returned by google's Web server:

HTTP/1.0 200 OK
Content-Type: image/gif
Last-Modified: Wed, 07 Jun 2006 19:38:24 GMT
Expires: Sun, 17 Jan 2038 19:14:07 GMT
Server: GWS/2.1
Content-Length: 8558
Date: Thu, 15 Mar 2007 23:31:27 GMT
Connection: Keep-Alive
Length: 8558 (8.4K) [image/gif]

In addition, we want to separate the HTTP response status from the headers and display it in a separate Status code window (see example above).

Clearly, since we do not know how many headers we will be receiving from the server, we must make the window that lists the returned headers scrollable.
Similarly, we want to accommodate for large images. Hence, we want some way of scaling the images.

Your program should also recognize whether or not an image was requested. If not, an error message should signify the error.

Finally, make sure that you build in a facility for handling timeouts; i.e., handling an HTTP server that does not reply timely.

Click here for a demo version of the program.

Some tips and hints: