jsonrpclib icon indicating copy to clipboard operation
jsonrpclib copied to clipboard

How do i pass extra information like csrf token in the request header?

Open sagarun opened this issue 13 years ago • 3 comments

I am trying pass extra information in the request header, how can do that with your library?

sagarun avatar Apr 04 '11 14:04 sagarun

I have implemented tiny change that allows to specify request headers:

https://github.com/dejw/jsonrpclib

dejw avatar Jul 14 '11 20:07 dejw

I'd really appreciate to see this feature from "dejw" in the main source stream ;)

zeph avatar May 23 '12 10:05 zeph

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')"

zeph avatar May 23 '12 10:05 zeph