[ee122] "full" URLs without Paths

Lisa Fowler fowler at eecs.berkeley.edu
Tue Sep 18 21:55:19 PDT 2007


Simon-

You should do the first:  GET / HTTP/1.0

The spec states that you should prepend the path in all cases (e.g. in
this case, nothing, "") with a /  :  Path = "/" *FileNameChar

Does that help?

-Lisa

On 9/18/07, Simon Tan <simtan at berkeley.edu> wrote:
> Should the client, given a URL without a 'Path' (?Path in the grammar),
> generate a valid GET request anyway? For example, if the client gets this
> on stdin:
>
> http://localhost:7789
>
> Should the client generate a GET request that looks like this:
> GET / HTTP/1.0
>
> ... which is valid (and what I would assume). Or should it send a GET
> request that looks like this:
> GET  HTTP/1.0
>
> .. which results in the server saying "ERROR -- Invalid Absolute-Path
> token.", but is kinda logical if the grammar->GET translation is followed
> directly.
>
> Note that if the user typed:
> http://localhost:7789/
>
> This problem would not occur, since the trailing '/' is passed into the
> GET string.
>
>
> --
> ~Simon Tan >> undergraduate at UC Berkeley
> Source: simtan at berkeley.edu
> _______________________________________________
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122
>


More information about the ee122 mailing list