websucker.py versus password-protected web tree

Oleg Broytmann phd at sun.med.ru
Wed Oct 6 09:55:52 EDT 1999


On 6 Oct 1999, John van der Koijk wrote:
> 
> I'm out of luck trying to mirror a certain web-tree which is protected
> by a password-username combination. Don't know how the protocol works

> - I know the username and password ;-)
> 
> Websucker seems unable to cope with this and I can't find relevant
> references in the urllib docs. Any pointers? Should I alter the URL?

   urllib can cope with this - look for http_error_401. You may modify your
URLs to http://user:passwd@host/path.

Oleg.
---- 
    Oleg Broytmann  National Research Surgery Centre  http://sun.med.ru/~phd/
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list