diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py index d15d60d2937a825..9d46aea7aeb6e94 100644 --- a/Lib/xmlrpc/client.py +++ b/Lib/xmlrpc/client.py @@ -1426,6 +1426,10 @@ def __init__(self, uri, transport=None, encoding=None, verbose=False, raise OSError("unsupported XML-RPC protocol") self.__host = p.netloc self.__handler = p.path or "/RPC2" + if p.params: + self.__handler += f';{p.params}' + if p.query: + self.__handler += f'?{p.query}' if transport is None: if p.scheme == "https": diff --git a/Misc/NEWS.d/next/Library/2021-03-01-12-09-25.bpo-43330.wXIGlD.rst b/Misc/NEWS.d/next/Library/2021-03-01-12-09-25.bpo-43330.wXIGlD.rst new file mode 100644 index 000000000000000..1cd2202e8bc777d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-03-01-12-09-25.bpo-43330.wXIGlD.rst @@ -0,0 +1 @@ +Pass uri query parametters along xmlrpc requests