Submit SMS Text Message using HTT- POST

Submit SMS Text Message using HTT- POST SearchSearch
Author Message
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 111
Registered: 04-2011
Posted on Monday, November 21, 2016 - 12:02 pm:   

Hi

Does the Gateway support submitting a text message using HTTP POST? The documentation says submitting programmatically via URL parameters

"http://127.0.0.1:8800/?PhoneNumber=xxxxxxxx&Text=abc+def+ghi"

which I assume is referring to HTTP-GET. If it supports submission thru HTTP-POST, what is the format?

Thanks in advance

Mathew
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5754
Registered: 08-2008
Posted on Monday, November 21, 2016 - 03:57 pm:   

Hi Mathew,

Yes. To use HTTP POST, all of the HTTP GET variables are instead sent in the POST data, specifying "application/x-www-form-urlencoded" as the "Content-Type:" (this is standard web form POST format). Just put all of the variables (everything after the "?") in the post data instead of the URL, and remove the "?" off of the URL.

--
Des
NowSMS Support
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 112
Registered: 04-2011
Posted on Wednesday, November 23, 2016 - 06:54 am:   

Thanks Des