This already exists:
$ curl -I https://pypi.python.org/project/Twisted/json
HTTP/2 301
server: Varnish
retry-after: 0
location: https://pypi.org/project/Twisted/json
content-type: text/html; charset=UTF-8
accept-ranges: bytes
date: Thu, 18 Oct 2018 03:06:12 GMT
x-served-by: cache-iad2626-IAD
x-cache: HIT
x-cache-hits: 0
x-timer: S1539831972.243137,VS0,VE0
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
content-length: 122
Especially if you use a project that actually exists like
https://pypi.python.org/pypi/numpy ;)
Then you don't get a 404 after the redirect which probably was your problem.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com