9 years 5 months ago - 9 years 5 months ago#10018by maxfranco
i'm trying to implement a php script interface to "http to sms"
i use urlencode to pass the message string to the gateway, but it seems that the gateway can't handle the messages containg a "new line" urlencoded.
passing an urlencoded string containg some encoded LFCR (%0D%0A) directly to the gateway leads to a 'sending' result key in json report, instead of 'success' string.
furthermore also the json string of the report result 'broken' by a new line.
i've seen that the built in sms sender interface can correctly handle new line inserted in the messages, so i hope that someone could give me some useful hints
9 years 4 months ago - 9 years 4 months ago#10046by maxfranco
i tried prepending an urlencoded escape char (%1B) to a CR char.
No luck... the sms doesn't start.
an escape char only can be sent, but obviously it didn't result in any output in the sms