Skip to content

Instantly share code, notes, and snippets.

@jeherve
Created July 24, 2014 12:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeherve/46816c61973377b79aab to your computer and use it in GitHub Desktop.
Save jeherve/46816c61973377b79aab to your computer and use it in GitHub Desktop.
[Jetpack] Example output
$ curl -is -H 'Content-Type: text/xml' --data '<?xml version="1.0"?><methodCall><methodName>demo.sayHello</methodName><params></params></methodCall>' 'http://wordpress.org/xmlrpc.php' && echo
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 24 Jul 2014 12:59:21 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 181
Connection: keep-alive
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<string>Hello!</string>
</value>
</param>
</params>
</methodResponse>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment