to get post variables (var1, var2, ...):
def index(req, var1="", var2="", . . . ):
Submitting was a bit more tricky, but I just had to use urlencode(data{}) from the urllib to encode the data dictionary of variables. Then use urllib.urlopen(
docs.python.org has a good example. What confused me was trying to use the http library that someone recommended for doing posts in python.
No comments:
Post a Comment