Python urllib vs httplib?
问题 When would someone use httplib and when urllib? What are the differences? I think I ready urllib uses httplib, I am planning to make an app that will need to make http request and so far I only used httplib.HTTPConnection in python for requests, and reading about urllib I see I can use that for request too, so whats the benefit of one or the other? 回答1: urllib (particularly urllib2) handles many things by default or has appropriate libs to do so. For example, urllib2 will follow redirects