agithub icon indicating copy to clipboard operation
agithub copied to clipboard

Feature request : Support 301 redirects on API endpoints

Open dovy opened this issue 8 years ago • 3 comments

I want to love this library, but I have an API that I'm trying to extend a class for this. It SHOULD be working, but it's stuck in a 301 response and nothing continues. How can I get redirects to be handled? It looks like they're stuck...

dovy avatar Feb 07 '17 03:02 dovy

I did not consider redirects when designing the library. Sorry about that!

Detecting and following redirects is probably not hard, since the http requests all happen in a single spot. If you have time to do it, send a pull request.

jpaugh avatar Feb 08 '17 23:02 jpaugh

We're thinking of migrating to using requests instead of httplib in which case this will be a simple change.

gene1wood avatar Apr 13 '18 18:04 gene1wood

Yea... Requests has a ton more power to it. I strongly suggest it.

dovy avatar Apr 13 '18 20:04 dovy