proxy server GET examples

Kevin Altis ([email protected])
Fri, 11 Feb 1994 08:52:05 --100


Below are a number of requests showing what a WWW client sends to a proxy
gateway server, and what the server returns. There are examples for Gopher,
FTP, and HTTP. Notice that in all cases, the client actually speaks HTTP
with the proxy gateway server and uses the full URL in its GET method
request. The example proxy server is the cern_httpd 2.15 daemon. The client
is Lynx 2-2 with the modification that I used an Accept: */* rather than
the list of Accepts that Lynx normally sends. The client request is
separated from the server reply by a blank line. I've used "...data..." to
substitute for actual content returned by the proxy gateway server. I hope
this clarifies some of the confusion over what the client/server
conversation looks like.

ka

----A Gopher request for a gif file
GET gopher://host.domain/g9/test.gif HTTP/1.0
Accept: */*
User-Agent: Lynx/2.2 libwww/2.14
From: [email protected]

HTTP/1.0 200 AA check bypassed (gatewaying)
MIME-Version: 1.0
Server: CERN/2.15
Content-Type: image/gif

..data...

----A Gopher request for an html file
GET gopher://host.domain/h0/test.html HTTP/1.0
Accept: */*
User-Agent: Lynx/2.2 libwww/2.14
From: [email protected]

HTTP/1.0 200 AA check bypassed (gatewaying)
MIME-Version: 1.0
Server: CERN/2.15
Content-Type: text/html

..data...

----A Gopher request for a text file
GET gopher://host.domain/00/test.txt HTTP/1.0
Accept: */*
User-Agent: Lynx/2.2 libwww/2.14
From: [email protected]

HTTP/1.0 200 AA check bypassed (gatewaying)
MIME-Version: 1.0
Server: CERN/2.15
Content-Type: text/plain

..data...

----An ftp request for a directory
GET ftp://host.domain/ HTTP/1.0
Accept: */*
User-Agent: Lynx/2.2 libwww/2.14
From: [email protected]

HTTP/1.0 200 AA check bypassed (gatewaying)
MIME-Version: 1.0
Server: CERN/2.15
Content-Type: text/html

..data...

----An ftp request for a binary file
GET ftp://host.domain/test.au HTTP/1.0
Accept: */*
User-Agent: Lynx/2.2 libwww/2.14
From: [email protected]

HTTP/1.0 200 AA check bypassed (gatewaying)
MIME-Version: 1.0
Server: CERN/2.15
Content-Type: audio/basic

..data...

----another ftp request for a binary file
GET ftp://host.domain/test.Z HTTP/1.0
Accept: */*
User-Agent: Lynx/2.2 libwww/2.14
From: [email protected]

HTTP/1.0 200 AA check bypassed (gatewaying)
MIME-Version: 1.0
Server: CERN/2.15
Content-Type: application/x-compressed

..data...

----A proxied HTTP example
GET http://host.domain/test.au HTTP/1.0
Accept: */*
User-Agent: Lynx/2.2 libwww/2.14
From: [email protected]

HTTP/1.0 200 OK
Date: Thursday, 10-Feb-94 22:32:29 GMT
Server: NCSA/1.1
MIME-version: 1.0
Content-type: audio/basic
Last-modified: Thursday, 10-Feb-94 22:22:49 GMT
Content-length: 27

..data...