Automatically populate and submit HTML Forms

Grant Edwards grante at visi.com
Thu May 26 11:17:28 EDT 2005


On 2005-05-26, Grant Edwards <grante at visi.com> wrote:

>> How can I make a python client script connect to a Web server and 
>> automatically populate form fields and then submit the form?

> Just use urllib() and pass the form data to the urlopen()
> method.  If given data, it will generate a "POST" request
> instead of a "GET".

Oops, I forgot.  Here's a pointer to the examples in the urllib
docs:

     http://docs.python.org/lib/node478.html

-- 
Grant Edwards                   grante             Yow!  This is PLEASANT!
                                  at               
                               visi.com            



More information about the Python-list mailing list