It was thus said that the Great Chase once stated:
>
> Assuming someone types "www.somedomainname.com/somefilename.htm" into
> the location field in their favorite browser...
>
> A browser would never request like this would it:
>
> GET /somefilename.htm
>
> ??
>
>
> Since so many websites are using shared ip addresses, don't requests
> made by browsers, just to be safe, **always** use the fully qualified
> URL:
>
> GET http://www.somedomainname.com/somefilename.htm
>
> ??
A browser would do a lookup for the IP address for "www.somedomain.com"
and once retreived, would connect to TCP port 80 at that address, then send
(at a minimum) the following:
GET /somefilename.htm HTTP/1.1
Host: www.somedomain.com
blank line ->
(followed by a blank line). Usually there's more information that the
browser passes along, like:
GET /somefilename.htm HTTP/1.0
Host: www.somedomainname.com
Accept: text/html, text/plain, video/mpeg, ... [cut rest of
line]
Accept: application/postscript, ... [cut rest of line]
Accept: image/x-xbm, image/gif, application/postscript,
*/*;q=0.01
Accept-Encoding: gzip, compress
Accept-Language: en
Negotiate: trans
User-Agent: Lynx/2.8.1pre.9 libwww-FM/2.14
Referer: http://linus.groomlake.area51:8080/
blank line ->
The webserver then responds with its own headers, then the content:
HTTP/1.1 200 OK
Date: Mon, 01 Aug 2005 03:56:09 GMT
Server: Apache/1.3.31 (Unix)
Last-Modified: Sat, 30 Oct 1999 07:11:18 GMT
ETag: "85876-540-381a9a16"
Accept-Ranges: bytes
Content-Length: 1344
Connection: close
Content-Type: text/html
blank line ->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Nothing here ... move along</title>
-spc (Knows waaay too much about this stuff ... comes from helping to
write a webserver ... )
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]