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
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
--
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
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
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 field in the form post?
dev:~$ python
Python