Hi All,

We have been using http_class in urllib2.py ,_http.py and calling its various methods like

h = http_class(host) # will parse host:port
h.set_debuglevel(self._debuglevel)
h.request(req.get_method(), req.get_selector(), req.data, headers)
h.getresponse()

I am searching this class in the python directory but I could'nt find any..

DO we need to download this separate class ..if so please tell me the link.In addition http_class is provided eith some information in those programs
"http_class must implement the HTTPConnection API from httplib."

Do you need low-level access? Simply opening a page is easy enough...

import urllib2
f = urllib2.urlopen("http://www.google.com")
data = f.read()
f.close()

Do you need something schnazzier than that?

Jeff

Hi

I am trying to open an https site using proxy and certificates..Is there any method for that???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.