Send SyncML OTA Setting via HTTP POST

Send SyncML OTA Setting via HTTP POST SearchSearch
Author Message
cwtan
Unregistered guest
Posted on Wednesday, May 12, 2004 - 09:05 am:   

Hello,

Any one can tell me how to send SyncML OTA setting via HTTP POST without create OTA document on gateway.
From the documentation of NowSMS, i know to do this by summit request to http://127.0.0.1:8800/?PhoneNumber=xxxxxxxx&OTA=POST, but i still not sure how do this. So any one can tell me more detail on it.

Thank,
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2576
Registered: 10-2002
Posted on Wednesday, May 12, 2004 - 07:53 pm:   

Basically, you just open an HTTP connection to the port for the NowSMS web interface, and then you issue an HTTP POST:

POST /?PhoneNumber=xxxxxxxx&OTA=POST HTTP/1.0
Content-Length: yyyyyy
(*blank line*)
<xml settings document>

When submitting an OTA request in this manner, the HTTP POST request must include a “Content-Length:” header. This should match the length of your XML document.

NowSMS v5.5 and later will scan the XML content to automatically determine what the content type is ... so that it can be encoded properly for sending over the air.

Earlier versions of NowSMS required specific flag settings in the URL. (For example, instead of OTA=POST, you would use OTASyncML=POST for SyncML settings, or OTAOMA=POST for OMA settings.)

-bn