previous
|
start
|
next
A Client Program
WebGet
This program lets you retrieve any item from a web server
You specify the host and item from the command line
For example:
java WebGet java.sun.com /
The "/" denotes the root page of the web server that listens to port 80 of
java.sun.com
WebGet
:
Establishes a connection to the host
Sends a
GET
command to the host
Receives input from the server until the server closes its connection
previous
|
start
|
next