[Distutils] HTTP authentication support

Phillip J. Eby pje at telecommunity.com
Wed Apr 4 17:40:59 CEST 2007


At 05:20 PM 4/4/2007 +0200, Jan-Wijbrand Kolman wrote:
>What I do is:
>
>   easy_install -f \
>   https://user:secret@myhost.com/trac/wiki/PackageIndex SomePackage
>
>This index page requires authentication and easy_install can indeed
>read the index page with the supplied credentials. It finds the
>correct download URL too, i.e.:
>
>  https://myhost.com/svn/somepackage#egg=SomePackage
>
>It was my understanding that easy_install would reuse the credentials
>as specified for the index page URL, since both host and scheme are
>identical for the download and index page URLs. However downloading
>fails, with a 401 Authorization Required error.
>
>As I said, it could very well be I'm doing something wrong here. Any
>hint is highly appreciated.

Is the download link a *relative* URL, or absolute?  If it's absolute, the 
credentials won't be there.



More information about the Distutils-SIG mailing list