Created
December 13, 2013 08:52
-
-
Save pswincom-examples/7941534 to your computer and use it in GitHub Desktop.
Simple example for XML HTTP POST
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> | |
<TEXT>Test message</TEXT> | |
<RCV>4799999999</RCV> | |
</MSG> | |
</MSGLST> | |
</SESSION>"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment