Re: Python does not allow a variable named "pass"

2010-04-11 Thread BJ Swope
urllib.urlencode({'pass' : 'foo'}) > 'pass=foo' > > > --- Giampaolo > http://code.google.com/p/pyftpdlib > http://code.google.com/p/psutil > -- > http://mail.python.org/mailman/listinfo/python-list > Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python does not allow a variable named "pass"

2010-04-11 Thread Xavier Ho
On Sun, Apr 11, 2010 at 11:40 PM, BJ Swope wrote: > Other than asking the website owner to change the name of the field > how can I go about passing that field in the form post? > How about: >>> urllib.urlencode({'pass' : 'foo'}) And so on? What is your problem in this context? Cheers, Xav --

Re: Python does not allow a variable named "pass"

2010-04-11 Thread Duncan Booth
BJ Swope wrote: > Other than asking the website owner to change the name of the field > how can I go about passing that field in the form post? > > dev:~$ python > Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) > [GCC 4.3.2] on linux2 > Type "help", "copyright", "credits" or "license" for more

Re: Python does not allow a variable named "pass"

2010-04-11 Thread Giampaolo Rodola'
On 11 Apr, 15:40, BJ Swope wrote: > I am trying to automate access to a web page that has forms based > authentication.  The password field is named "pass" which python is > not going to like. > > Other than asking the website owner to change the name of the field > how can I go about passing that