Automatic web form transactions

Jay Davis dj00302003 at yahoo.com
Thu Mar 4 19:15:42 CET 2004


DH <no at sp.am> wrote in message news:<5uOdnVbEF6CuzdvdRVn-uQ at comcast.com>...

> 
> The web form script (additem.php) might be checking the referrer.
> Set the http request referrer header to a URL the the URL of the webform.
> 
> See if something like this works:
> request = form.click()
> request.add_header("Referrer", "url of the form")
> response = urlopen(request)

Yep that was it.  (But replace('Referrer','Referer').)

Thanks!



More information about the Python-list mailing list