[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2019-02-19 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2019-02-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset beda52ed36e701e45f22903fc4d3bec0d085b25b by Victor Stinner (Cédric Krier) in branch 'master': bpo-35153: Add headers parameter to xmlrpc.client.ServerProxy (GH-10308) https://github.com/python/cpython/commit/beda52ed36e701e45f22903fc4d3bec0d085b2

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2019-02-17 Thread Cédric Krier
Cédric Krier added the comment: I have another use case to be able to set headers to xmlrpc: http://www.roundup-tracker.org/docs/xmlrpc.html#advanced-python-client-adding-anti-csrf-headers -- ___ Python tracker

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok +1 for me and I understand the need. But there is no defined experts for the xmlrpc part. We have to wait for a review just for the feature. -- ___ Python tracker _

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Cédric Krier
Cédric Krier added the comment: We have a library proteus which uses xmlrpc.client to connect to our server. The server support basic authentication but also session authentication. The session authentication is much faster because the password hash verification is slow by design. So to be ab

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: and could you add some tests for this new feature? Thank you. -- ___ Python tracker ___ ___ Pyth

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Do you have an example where we need to have extra headers? but +1 for the feature, I marked this issue for 3.8 -- nosy: +matrixise versions: +Python 3.8 ___ Python tracker ___

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9615 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Cédric Krier
New submission from Cédric Krier : If we want to support other authentication method than basic, we need to be able to set headers to the request sent. I propose to add an argument headers to ServerProxy which is a list of header tuples that will be put as header. -- components: Librar