connect to https unpossible. Please help.

Mark Delon mark.delon at
Wed Oct 19 23:33:05 CEST 2005


i want to log via python script to https page:

But it does not work.

I am using following code(see below)

Has somebody any ideas?
How can I get to this https page?
Need I to know some infos from "provider"(certificates, etc)?
Thank u very much !

sincerely mark

import urllib2

username = 'username'
password = 'password'
passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
passman.add_password(None, theurl, username, password)
authhandler = urllib2.HTTPBasicAuthHandler(passman)
opener = urllib2.build_opener(authhandler)
t = urllib2.urlopen('')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Program Files\python233\lib\", line 129, in urlopen
    return, data)
  File "C:\Program Files\python233\lib\", line 326, in open
    '_open', req)
  File "C:\Program Files\python233\lib\", line 306, in _call_chain
    result = func(*args)
  File "C:\Program Files\python233\lib\", line 908, in https_open
    return self.do_open(httplib.HTTPS, req)
  File "C:\Program Files\python233\lib\", line 886, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error (10060, 'Operation timed out')>

Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
DSL-Flatrate für nur 4,99 Euro/Monat*

More information about the Python-list mailing list