Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET request to PyPI does not work #33

Closed
rubik opened this issue May 19, 2011 · 6 comments
Closed

GET request to PyPI does not work #33

rubik opened this issue May 19, 2011 · 6 comments

Comments

@rubik
Copy link

rubik commented May 19, 2011

Hi, requests it is fantastic!
But if I try to retrieve data from http://pypi.python.org/simple/sphinx/ I get the following error:

ValueError: unknown url type: /simple/Sphinx

That is because PyPI redirects me to that url. You should really allow redirections.

rubik

@kennethreitz
Copy link
Contributor

Requests does have extensive redirection support. Looks like PyPI is attempting a relative redirect. I don't think that's a valid redirect, but I'll try to support it.

@kennethreitz
Copy link
Contributor

Yeah, that's not a valid form of redirection.

See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30

I see no harm in trying to support it though.

@rubik
Copy link
Author

rubik commented May 20, 2011

Ok, thank you. I didn't know that.

@kennethreitz
Copy link
Contributor

Support for this was just added. It will be included in the next release.

@rubik
Copy link
Author

rubik commented May 22, 2011

Ok thank you very much!

@kennethreitz
Copy link
Contributor

✨🍰✨

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants