$$SMS$$ doesn't encode question mark '?' | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through October 03, 2004 ⬆ |
◄ ► |
Author | Message | |||
Charmaine New member Username: Fanfan Post Number: 2 Registered: 07-2004 |
When configure 2-way SMS to route the incoming SMS to a HTTP URL, the parameter @@SMS@@ does not have question mark encoded. Question mark is reserved in URL. It should be encoded as "%3F" in @@SMS@@. The 2-way command I have set is: http://127.0.0.1:8800/PhoneNumber=xxxxxxxx&Text=@@SMS@@ Here the incoming SMS is routed to Now Gateway's own HTTP interface. When SMS text contains '?', say, "aaa?bbb", only "aaa" get forwarded to the destination phone, and "?bbb" is ignored by NowGateway's webserver. I cannot find a workaround. It seems either @@SMS@@ needs to encode '?', or the NowGateway webserver needs to handle URL parameters that contain '?'. Can NowGateway fix this problem soon? Or anybody suggest a workaround? Thanks in advance. | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3017 Registered: 10-2002 |
Hi Charmaine, That's definitely a problem. Technically, the "?" character should only be used as the first delimiter in URL string (other parameters are separated by "&"). But since your command is going to NowSMS, we will accept either "?" or "&" as a parameter delimiters after the first parameter. (I'm sure some other servers behave the same way.) So we should be encoding the "?" character as you describe. I also received an e-mail from you regarding this, so I will reply to your e-mail with an update to fix this problem. Please note that it will likely take a couple of days for this update to be sent. -bn | |||
Charmaine New member Username: Fanfan Post Number: 3 Registered: 07-2004 |
Hi Bryce, Thanks for your reply. I haven't received any email from you yet. Is the fix ready yet? Please send me the fix if it's available. Thanks again. --Charamine | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3139 Registered: 10-2002 |
Hi Charmaine, I'm not sure what happened to the e-mail, as I did send it. But rather than attempt an e-mail again, you can download an update that includes a fix for this problem at http://www.nowsms.com/download/nowsms550d.zip. -bn |