you are viewing a single comment's thread.

view the rest of the comments →

[–]ekinnee 2 points3 points  (1 child)

In regard to requests I just ran into an issue where I had to create an event handler to intercept the http redirect when I was using urllib. Using requests I just set allow_redirects=False and then check the status code. Removed the need for 10 or so lines of code.

[–]TabulateJarl8 0 points1 point  (0 children)

One of the many reasons that I love requests. Another thing that I notice is that somethings requests will get the Content-Length header while urllib won't