Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Python3][Tumblr] Infinite redirect when using proxy feature #9654
Comments
|
Works fine for me either with proxy or without proxy. Please post the output of:
Note that |
|
Hmm, with Python 2 it works correctly. Before I used the youtube-dl.exe which comes with Python 3. So obviously something changed in Python url libs? If that's the case then youtube-dl should probably normalize the url manually. |
Maybe. I can't reproduce it yet on Python 3 with a proxy. Need to investigate further. |
Strange. Here is version info:
|
|
Related python bug I found (even though it says 2.7): http://bugs.python.org/issue18119 |
version 2016.05.30.2youtube-dl -j "http://sythnmsvntn.tumblr.com/post/145116566731/little-kid-dancing-to-seventeens-pretty-u-this-isWITHOUT proxy:
Request 1:
(why is youtube-dl removing part of the url here?)
Response:
Request 2:
OK, page is now sent and youtube-dl handles it correctly.
WITH proxy:
Same as before, but request 2 looks like this:
Notice the not removed
#_=_at the end. This causes tumblr to respond with yet another 301 redirect (as in first response) resulting in infinite loop: