[pydotorg-www] PyPI HTTPS access fails with IPv4

Antoine Pitrou solipsis at pitrou.net
Sun Sep 23 20:15:32 CEST 2012


<martin <at> v.loewis.de> writes:
> 
> Zitat von Antoine Pitrou <solipsis at ...>:
> > I am noticing a weird stylesheet difference between HTTP PyPI and HTTPS PyPI,
> > and it boils down to HTTPS access failing with IPv4:
> 
> The bug is really in PyPI. www.python.org does not support https, so  
> PyPI should
> really copy the CSS files locally.

Ah, true. For some reason, connecting works with IPv6 but then handles the
request to the SVN virtual host:

$ LANG=C curl -vk https://www.python.org/styles/screen-switcher-default.css 
* About to connect() to www.python.org port 443 (#0)
*   Trying 2001:888:2000:d::a2... connected
* Connected to www.python.org (2001:888:2000:d::a2) port 443 (#0)
[ ... ]
> GET /styles/screen-switcher-default.css HTTP/1.1
> User-Agent: curl/7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o
zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
> Host: www.python.org
> Accept: */*
> 
< HTTP/1.1 401 Authorization Required
< Date: Sun, 23 Sep 2012 18:13:48 GMT
< Server: Apache/2.2.16 (Debian)
< WWW-Authenticate: Basic realm="Subversion repository"
< Content-Length: 482
< Content-Type: text/html; charset=iso-8859-1
[ etc. ]

Regards

Antoine.




More information about the pydotorg-www mailing list