[cs631apue] Question about the request

ccui1 ccui1 at stevens.edu
Mon Nov 26 01:56:15 EST 2012


Hello,

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.

In another word, we request a directory without ending the string with 
a "/".

Do we still process that as a directory or just give a 400 or 404 
status back?

When I try to do GET /. HTTP/1.0 and GET /.. HTTP/1.0, the google 
server will give a 404 not found status. Actually, GET /. HTTP/1.0 is 
the same as GET / HTTP/1.0 if we see "." as a directory.

How can we deal with such conditions?

Thanks

-- 
Chao Cui
phone: 518-505-0519
Master of Computer Science Candidate
Stevens Institute of Technology


More information about the cs631apue mailing list