Skip to content

Instantly share code, notes, and snippets.

@righettod
Last active February 16, 2021 19:08
Show Gist options
  • Save righettod/8c572e5ee790769a49ecbd6965eeff77 to your computer and use it in GitHub Desktop.
Save righettod/8c572e5ee790769a49ecbd6965eeff77 to your computer and use it in GitHub Desktop.
Request template to test XML RPC service exposed from CMS like Drupal, Wordpress...

XML RPC method exposed:

  • system.multicall
  • system.methodSignature
  • system.getCapabilities
  • system.listMethods
  • system.methodHelp

Request template:

<?xml version="1.0"?>
<methodCall>
    <methodName>system.listMethods</methodName>
    <params></params>
</methodCall>

Full request example:

POST /drupal/xmlrpc.php HTTP/1.1
Host: domain.com
User-Agent: Mozilla/5.0
Accept: application/json, text/plain, */*
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/xml
DNT: 1
Connection: close
Content-Length: 585

<?xml version="1.0"?>
<methodCall>
   <methodName>user.register</methodName>
   <params>
     <param>
       <struct>
         <member>
           <name>name</name>
           <value><string>XXX</string></value>
         </member>
         <member>
           <name>mail</name>
           <value><string>XXX</string></value>
         </member>
         <member>
           <name>pass</name>
           <value><string>XXX</string></value>
         </member>
       </struct>
     </param>
   </params>
</methodCall>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment