httplib with SSL support for Python 2.1 ?
Harald Schneider
h_schneider at marketmix.com
Fri Mar 21 14:35:10 EST 2003
Tested this one: http://alldunn.com/python/
But it crashes with:
pD9531BB1.dip.t-dialin.net - - [21/Mar/2003 20:30:49] code 400, message Bad
request syntax ('')
----------------------------------------
Exception happened during processing of request from ('217.83.27.177', 2413)
Traceback (most recent call last):
File "C:\usr\python\lib\SocketServer.py", line 221, in handle_request
self.process_request(request, client_address)
File "C:\usr\python\lib\SocketServer.py", line 240, in process_request
self.finish_request(request, client_address)
File "C:\usr\python\lib\SocketServer.py", line 253, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\usr\python\lib\SocketServer.py", line 501, in __init__
self.handle()
File "C:\usr\python\lib\BaseHTTPServer.py", line 259, in handle
if not self.parse_request(): # An error code has been sent, just exit
File "C:\usr\python\lib\BaseHTTPServer.py", line 243, in parse_request
self.send_error(400, "Bad request syntax (%s)" % `requestline`)
File "C:\usr\python\lib\BaseHTTPServer.py", line 291, in send_error
self.wfile.write(self.error_message_format %
File "C:\usr\python\lib\socket.py", line 192, in write
self.flush()
File "C:\usr\python\lib\socket.py", line 179, in flush
self._sock.sendall(self._wbuf)
AttributeError: sendall
----------------------------------------
Exception exceptions.AttributeError: 'sendall' in <method
_fileobject.__del__ of _fileobject instanc
e at 00D964EC> ignored
------------
Any ideas ?
All the best,
Harald
"Harald Schneider" <h_schneider at marketmix.com> schrieb im Newsbeitrag
news:b5fo5a$ieb$03$1 at news.t-online.com...
> Now it's getting interesting:
>
> The test for SSL in xmlrpclib is OK. The prob is socket.py:
>
> -----------------------------------
> if (sys.platform.lower().startswith("win")
> or (hasattr(os, 'uname') and os.uname()[0] == "BeOS")
> or (sys.platform=="RISCOS")):
>
> _realsocketcall = _socket.socket
>
> def socket(family, type, proto=0):
> return _socketobject(_realsocketcall(family, type, proto))
>
> try:
> _realsslcall = _socket.ssl
> except AttributeError:
> pass # No ssl
> -----------------------------------
>
> It raises an AttributeError: socket has no attrib ssl.
> Is there a version of socket.pyd with SSL support enabled out there for
> Win32/Python 2.1 ?
>
> --Harald
>
>
>
>
>
> "Harald Schneider" <h_schneider at marketmix.com> schrieb im Newsbeitrag
> news:b5fnif$hd2$04$1 at news.t-online.com...
> > Sorry -- I was too fast:
> > It surely has HTTPS support, but xmlrpclib claims, that it wouldn't. The
> > test method of my xmlrpclib is not up to date.
> >
> > --Harald
> >
> >
> > "Harald Schneider" <h_schneider at marketmix.com> schrieb im Newsbeitrag
> > news:b5fn2u$19e$05$1 at news.t-online.com...
> > > Hi,
> > >
> > > does there exist a httplib with SSL support for Python 2.1?
> > > The one, that comes with ActiveState's distribution has no SSL support
> ...
> > > :-/
> > >
> > > Thanks for your answers,
> > > Harald
> > >
> > >
> >
> >
>
>
More information about the Python-list
mailing list