[cs631apue] Question about uri

yluo4 yluo4 at stevens.edu
Mon Nov 18 16:07:26 EST 2013


Hi,

   I am still not very clear about the uri.  Say, we start a server like:
   $./sws /home/yluo4/testdir

1.
   If we have a request like:
   GET /../../../test HTTP/1.0

   Should we resolve the uri as /home/yluo4/testdir/test or response "404 
Not Found"?

2.
   If we have a request like:
   GET /~hwu9/../../../test HTTP/1.0

   Should we resolve the uri as /home/hwu9/sws/test or response "404 Not 
Found"?

  Thanks,
  Yulong



More information about the cs631apue mailing list