How do initial login/password before can download web file withurllib?
Fredrik Lundh
fredrik at pythonware.com
Wed Jan 11 14:07:29 EST 2006
seberino at spawar.navy.mil wrote:
> I finally figured out how to use the wonderful module urllib to
> download files.
>
> What if web page requires you to fill out a form with login and
> password first?
the examples section shows how to encode form data for either GET
or POST requests:
http://www.python.org/doc/current/lib/node483.html
(look at the page sources to see what the server wants you to use:
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.1 )
</F>
More information about the Python-list
mailing list