Unable to pass plus sign (+) in front of country code when using UR...

Unable to pass plus sign (+) in front of country code when using UR... SearchSearch
Author Message
Adnan
New member
Username: Qss

Post Number: 1
Registered: 12-2006
Posted on Thursday, December 14, 2006 - 07:37 pm:   

Hi All,

In my application I am using URL syntax to send SMS messages with NowSMS 2006:

http://host?Sender=061123456&PhoneNumber=+38761654321&Text=test

When I use country code (387) I need to prefix the number with plus sign (+) otherwise the modem will not deliver the message.

When URL decoded the + sign is replaced with a space character and NowSMS sends to 38761654321 insted of +38761654321.

Can NowSMS 2006 be configured to automatically add plus sign to all international numbers and leave local number (starting with 0) untouched?

Please help - it is urgent.

Best regards,

Adnan
Malcolm - Now Support
New member
Username: Malcolm

Post Number: 8
Registered: 12-2006
Posted on Friday, December 15, 2006 - 08:01 pm:   

Hi Adnan,

URL request parameters need to be URL escaped ... in particular characters like "+" can get you in trouble, because in a URL request, "+" is an encoding for the space character.

Basically, you need to use "%2B" in a URL string instead of "+".

You can find some more info here:

http://www.nowsms.com/documentation/ProductDocumentation/sending_messages/url_pa rameters_for_sending_messages.htm

--
Malcolm
Now Wireless Support