SMS Submit Text using HTTP POST

SMS Submit Text using HTTP POST SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through May 19, 2016 » SMS Submit Text using HTTP POST « Previous || Next »
Author Message
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 78
Registered: 04-2011
Posted on Thursday, November 12, 2015 - 09:57 am:   

Hi,

Is it possible to submit Text messages using HTTP POST? NowSMS documentation mentions HTTP POST only for MMS and OTA.

If supported, do clarify
- the format in which data is to be written into request stream i.e as name-value pairs or??, separators??,
- content-type
- does it have to be URL-encoded,
- how about handling arabic messages
- Appreciate of a sample request/response is also given.


Regards
Mathew
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5507
Registered: 08-2008
Posted on Tuesday, November 17, 2015 - 09:14 pm:   

Hi Mathew,

Apologies for the delay in response. I normally am notified for each new post, but was not notified for this post.

When you 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:" (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: 79
Registered: 04-2011
Posted on Thursday, November 19, 2015 - 05:55 am:   

Thanks Des.

Mathew

Login Login / Register Logout Logout Search Last 30 Days Topics Topics