First of all, sorry if this question is a little vague and rambling! I'm ok with Python, but I've never done anything HTTP related before.
I'm trying to automate submitting a web form, and from reading some of this page I understand that I need to do a POST request. I also found a code snippet demonstrating the urllib module:
import urllib
params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query", params)
print f.read()
But I still don't really understand what I'm doing. I need to trigger "submit" somehow, and I assume the actual data I'm submitting will go in the params somewhere?