This file contains 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
var https = require('https'); | |
var post_data = "<?xml version=\"1.0\"?>\ | |
<SESSION>\ | |
<CLIENT>myusername</CLIENT>\ | |
<PW>mypassword</PW>\ | |
<MSGLST>\ | |
<MSG>\ | |
<TEXT>Test message</TEXT>\ | |
<RCV>4799999999</RCV>\ |
This file contains 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
<?php | |
$url = "http://sms3.pswin.com/sms"; | |
$doc = <<<XML | |
<?xml version="1.0"?> | |
<SESSION> | |
<CLIENT>myusername</CLIENT> | |
<PW>mypassword</PW> | |
<MSGLST> | |
<MSG> |
This file contains 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
$req = (New-Object System.Net.WebClient) | |
$req.Headers.Add("Content-Type", "application/xml") | |
$req.UploadString("http://sms3.pswin.com/sms", "<?xml version=""1.0""?> | |
<SESSION> | |
<CLIENT>myusername</CLIENT> | |
<PW>mypassword</PW> | |
<MSGLST> | |
<MSG> | |
<TEXT>Test message</TEXT> | |
<RCV>4799999999</RCV> |
This file contains 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
//XML HTTP POST | |
var req = new WebClient(); | |
req.Headers.Add("Content-Type", "application/xml"); | |
req.UploadString( "http://sms3.pswin.com/sms", | |
@"<?xml version=""1.0""?> | |
<SESSION> | |
<CLIENT>myusername</CLIENT> | |
<PW>mypassword</PW> | |
<MSGLST> | |
<MSG> |