Hallo Reichi,
das funktioniert so nicht... ???
Code
class TLSSNIContextFactory(ssl.ClientContextFactory):
def getContext(self, hostname=None, port=None):
ctx = ssl.ClientContextFactory.getContext(self)
ClientTLSOptions(hostname, ctx)
return ctx
mccontextFactory=TLSSNIContextFactory()
def mcSSLSNIdownloadPage(url, fn, *args, **kwargs):
if 'agent' not in kwargs:
kwargs['agent'] =MCUSERAGNET
if 'timeout' not in kwargs:
kwargs['timeout']=4
return downloadPage(url, fn, *args, contextFactory=mccontextFactory, **kwargs)
Alles anzeigen
Fehler: errorAllPicDownloads]error expected string or buffer