[cs631apue] Question about the request

Jan Schaumann jschauma at stevens.edu
Mon Nov 26 18:06:02 EST 2012


ccui1 <ccui1 at stevens.edu> wrote:

> The question is when we give a request like
>
> GET /dir HTTP/1.0 instead of giving the request like GET /dir/ HTTP/1.0.

Try it out against any web server you like.  You should find that a
request for "/dir", where that is an actual directory, yields a 301
return.

A request for "/dir/" is identical to "/dir/.", since "." is just the
name for the directory.

-Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 478 bytes
Desc: not available
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20121126/f0cecacc/attachment.pgp>


More information about the cs631apue mailing list