connect to https unpossible. Please help.

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


Hi,

i want to log via python script to https page:

'https://brokerjet.ecetra.com/at/'
#
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

Code:
======
import urllib2

theurl='https://brokerjet.ecetra.com/at/'
#
username = 'username'
password = 'password'
passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
passman.add_password(None, theurl, username, password)
authhandler = urllib2.HTTPBasicAuthHandler(passman)
opener = urllib2.build_opener(authhandler)
urllib2.install_opener(opener)
t = urllib2.urlopen('https://brokerjet.ecetra.com/at/')
#
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Program Files\python233\lib\urllib2.py", line 129, in urlopen
    return _opener.open(url, data)
  File "C:\Program Files\python233\lib\urllib2.py", line 326, in open
    '_open', req)
  File "C:\Program Files\python233\lib\urllib2.py", line 306, in _call_chain
    result = func(*args)
  File "C:\Program Files\python233\lib\urllib2.py", line 908, in https_open
    return self.do_open(httplib.HTTPS, req)
  File "C:\Program Files\python233\lib\urllib2.py", 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*  http://www.gmx.net/de/go/dsl



More information about the Python-list mailing list