You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chase <xa...@juun.com> on 2005/08/01 04:11:50 UTC
[users@httpd] "GET /somefilename.htm" ... Would a browser do this?
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
??
Am I correct in assuming this?
Thanks.
- Chase
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] "GET /somefilename.htm" ... Would a browser do
this?
Posted by Dan Goodes <da...@planetmirror.com>.
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] "GET /somefilename.htm" ... Would a browser do this?
Posted by Chase <xa...@juun.com>.
Is the GET request always rooted at "/" ?
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?
- Chase
On Jul 31, 2005, at 9:33 PM, Dan Goodes wrote:
> On Sun, 31 Jul 2005 at 21:11, Chase wrote:
>
>
>> 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
>>
>> ??
>>
>
> Nope. There are headers involved here, that specify the Host. So the
> client would:
>
> 1) connect to the IP address of www.somedomainname.com
> 2) send, among other things, a Host: header specifying
> Host: www.somedomainname.com
> 3) then the client sends the request itself:
> GET /somefilename.htm HTTP/1.1
>
> (of course older clients will use HTTP/1.0, or some other protocol).
>
> Hope that explains it.
>
> -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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] "GET /somefilename.htm" ... Would a browser do
this?
Posted by Dan Goodes <da...@planetmirror.com>.
On Sun, 31 Jul 2005 at 21:11, Chase wrote:
> 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
>
> ??
Nope. There are headers involved here, that specify the Host. So the
client would:
1) connect to the IP address of www.somedomainname.com
2) send, among other things, a Host: header specifying
Host: www.somedomainname.com
3) then the client sends the request itself:
GET /somefilename.htm HTTP/1.1
(of course older clients will use HTTP/1.0, or some other protocol).
Hope that explains it.
-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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org