[KLUG Members] Re: Dynamic HTML/HTTP question

Adam Tauno Williams members@kalamazoolinux.org
Thu, 5 Dec 2002 11:02:55 -0500


>>One solution is python:
>>>>>import urllib
>>>>>arams = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
>>>>> = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query", params)
>>>>>rint f.read()
>This is about the right level of abstraction. I don't know much python;
>that can change quickly. 
>Does this handle the difference bewteen GET vs. POST ?
>In general, I would expect a GET should look like...
>http://www.musi-cal.com/cgi-bin/query?spam=1&eggs=2&bacon=0

How about a presentation on python?  I'm certainly interested,  but what I know
about it would fit between two solar core hyrogen atoms.  Rumor has it that it
has about the coolest XML munching & crunching capabilities around.