Forked from rodrigobravo/gist:37da089bf7863c350d482f2becc6e9bb
Last active
June 23, 2017 21:51
-
-
Save lubien/e2fa997c8011bf94a12d4206bd41ee15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function testaPost(){ | |
const url = '/includes/curl2.php' | |
const data = { | |
username: 'lubien', | |
password: '123456', | |
data: `<?xml version='1.0'?> | |
<methodCall> | |
<methodName>RequestServer.GetTableState</methodName> | |
<params> | |
<param> | |
<value><i4>112</i4></value> | |
</param> | |
<param> | |
<value><i4>1649267442702</i4></value> | |
</param> | |
</params> | |
</methodCall>` | |
} | |
$.post(url, data) | |
.done(console.log) | |
.fail(console.error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment