Re: [users@httpd] "GET /somefilename.htm" ... Would a browser do this?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 31 Jul 2005 at 21:40, Chase wrote:

> Is the GET request always rooted at "/" ?

Actually, I tell a lie. The format of a request COULD be

GET http://www.somedomainname.com/somefilename.htm HTTP/1.1

although this form of request is likely only when talking to a proxy
server. Have a read of this page:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html

which outlines the format of the Request URI for a GET request.

> In other words, is the browser itself responsible for figuring out
> what the full path to file is, if, for instance, the user clicks on a
> relative link?

Yes - as per the spec above, the client must specify the full path
relative to the document root, so

/some/path/to/somefile.htm

so the browser must translate relative links into this absolute path.

-Dan

---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux