jsonrpclib
jsonrpclib copied to clipboard
How do i pass extra information like csrf token in the request header?
I am trying pass extra information in the request header, how can do that with your library?
I have implemented tiny change that allows to specify request headers:
https://github.com/dejw/jsonrpclib
I'd really appreciate to see this feature from "dejw" in the main source stream ;)
in particular.. I can't use the Confluence JSON-RPC calls cause the library is sending out the wrong headers...
- https://developer.atlassian.com/display/CONFDEV/Confluence+JSON-RPC+APIs
"jsonrpclib.jsonrpc.ProtocolError: (-32600, u'JSON-RPC requests must have the Content-type: application/json')"