Lines Matching refs:urllib2
33 from cloudinary.compat import NotConnected, httplib, urllib2
98 class StreamingHTTPRedirectHandler(urllib2.HTTPRedirectHandler):
107 handler_order = urllib2.HTTPRedirectHandler.handler_order - 1
134 return urllib2.Request(
140 raise urllib2.HTTPError(req.get_full_url(), code, msg, headers, fp)
143 class StreamingHTTPHandler(urllib2.HTTPHandler):
147 handler_order = urllib2.HTTPHandler.handler_order - 1
164 return urllib2.HTTPHandler.do_request_(self, req)
172 class StreamingHTTPSHandler(urllib2.HTTPSHandler):
176 handler_order = urllib2.HTTPSHandler.handler_order - 1
190 return urllib2.HTTPSHandler.do_request_(self, req)
205 opener = urllib2.build_opener(*get_handlers())
207 urllib2.install_opener(opener)