About urllib or urllib2

Andrew Markebo andrew.markebo at telelogic.com
Sat Oct 21 08:36:49 EDT 2000


Yes you can.

The class FancyURLopener has functionality to ask the user for
password, I think you also can tell the urlopener which password to use.

Or try with the url 
        http://user:pass@www.xxx.zz/users/prog.asp
        /Andy

/ "Juan Huertas" <jhg at galdon.com> wrote:
| Is possible access to a internet page (url) knowing the username and
| password via urllib or urllib2?
| 
| For example:
| 
| In page http://www.xxx.zz/users/prog.asp is possible knowing username and
| password retrieve a file (zzz.txt).
| 
| I can download the file via urllib ?
| 
| Thak you.
| 
| Juan Huertas.
| 
| jhg at galdon.com



More information about the Python-list mailing list