m2crypto https, xmlrpc, and cookies

Gelonida N gelonida at gmail.com
Tue Aug 2 17:53:03 EDT 2011


Just started playing with m2cryptos xmlrpc

The code I'm using is:

import xmlrpclib
from M2Crypto.m2xmlrpclib import Server, SSL_Transport
from M2Crypto.SSL.Context import Context

ctx = Context()
# modify context
svr = Server(rpc_url, SSL_Transport(ctx), encoding='utf-8')

What I wondered is following:

When using my web browser certain cookies are sent with the request.

Is there any way to change my above code such, that cookies would be
collected and sent?

Thanks in advance for any pointers.

More information about the Python-list mailing list