[cse491] GET query string parsing
C. Titus Brown
ctb at msu.edu
Sun Oct 4 18:26:02 PDT 2009
On Sun, Oct 04, 2009 at 09:24:33PM -0400, Joe Amenta wrote:
> 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.
>
> 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"
Discard it.
--titus
--
C. Titus Brown, ctb at msu.edu
More information about the cse491-fall-2009
mailing list