I just want a function that can take 2 parameters:
How can this be done with httplib? thanks.
A simpler one, using just urllib:
import urllib params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0}) f = urllib.urlopen("http://www.example.org/cgi-bin/query", params) print f.read()
Found in Python docs for urllib module