params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query", params)
print(f.read())
This is my way of doing a POST ...
and the experienced reader would quickly note that this is Python. No type deceleration. Free spirit at the price of human irresponsibility.
No comments:
Post a Comment