Hello,

I would like to access an HTTPS site via a proxy
The following code is working for HTTP://www.hotmail.com but not for HTTPS
I have try with other sites without success

  l_proxy_info = {
     'user' : mylogin,
     'pass' : mypassword,
     'host' : myproxy,
     'port' : 8080
  }

  l_proxy_support = urllib2.ProxyHandler({"http" : \
                  "http://%(user)s:%(pass)[EMAIL PROTECTED](host)s:%(port)d" %
l_proxy_info})
  l_opener = urllib2.build_opener(l_proxy_support, urllib2.HTTPHandler)

  urllib2.install_opener(l_opener)
  l_req = urllib2.urlopen('https://www.hotmail.com/')
  print l_req.headers
  print l_req.read()

Thanks for your help, ;-)
Jacobo


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to