[cse491] GET query string parsing
Joe Amenta
amentajo at msu.edu
Sun Oct 4 18:24:33 PDT 2009
On Sun, Oct 4, 2009 at 9:09 PM, C. Titus Brown <ctb at msu.edu> wrote:
> On Sun, Oct 04, 2009 at 08:57:01PM -0400, Jack Carlson wrote:
> > In the homework, we're told to "read and ignore any GET query strings".
> > I'm curious as to what this actually means--is reading the URL path and
> > then splitting on the '?' good enough? Or are we expected to fill some
> > sort of dictionary with key/value pairs from the query string?
>
> Just split on the '?' and ignore what comes after. Next homework will
> involve
> using the urlparse module, but that's next HW.
>
> --titus
> --
> C. Titus Brown, ctb at msu.edu
The GET query string is included in the URL. Should we include it in the
output with the rest of the URL?
e.g., "hello, /index.php?name=Joe&otherstuff=yes" or "hello, /index.php"
--Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/cse491-fall-2009/attachments/20091004/9c5c3ddb/attachment.html>
More information about the cse491-fall-2009
mailing list