I have a python script that takes a number of variables. I also have a html page that can receive post values.
How can I start a browser from python and point it to the html page I have above and send those post variables to the html url?
The problem I have is that if I use urllib/urllib2 to do the post, it doesn't load the browser window. And if I want to load a browser window I cannot send a post to the url.
This is how you can do a POST to a url but it doesn't open up a browser, instead it can receive back values like so. But I do not need to read back values, I need to open a Internet browser, point it to a specific url and post the variables to that url.
data = urllib.urlencode({"fileTitle" : "ThisFileName", "findtype" : "t", "etc" : "etc"})
f = urllib.urlopen("http://www.domain.com/someurl/", data)
# Read the results back.
s = f.read()
s.close()