2-way sms substituting Sender value not working | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through December 14, 2010 ⬆ |
◄ ► |
Author | Message | |||
schadow1 New member Username: Schadow1 Post Number: 1 Registered: 11-2010 |
I am trying to substitute the sender name as the the username for the server in nowsms 2-way but it wouldn't work. any help? syntax i used for 2way sms is http://@@sender@@:pass@127.0.0.1:8800/?phonenumber=888&text=10@20@@sms@@ logs shown below Working log (sender not substituted) 21:43:23:913 [5] ThreadProcessInboundSMS: Processing 4CE3DBAF.in... 21:43:23:924 [5] GetProgramToExecute: http://user:pass@127.0.0.1:8800/?phonenumber=888&text=10%20090819362 21:43:23:924 [5] ThreadProcessInboundSMS: Executing http://user:pass@127.0.0.1:8800/?phonenumber=888&text=10%20090819362 21:43:23:924 [5] RetrieveURL: Retrieving http://user:pass@127.0.0.1:8800/?phonenumber=888&text=10%20090819362 21:43:23:924 [5] RetrieveURL: Looking up 127.0.0.1 21:43:23:926 [7] ThreadProcessConnection: Request processing complete Not working log (subsituted sender for 2-way sms) 21:43:14:890 [5] ThreadProcessInboundSMS: Processing 4CE3CCC4.in... 21:43:14:898 [5] GetProgramToExecute: http://%2B6392377600:pass@sms.cxsmedia.com:8800/?phonenumber=343&text=20%2009081 9362 21:43:14:898 [5] ThreadProcessInboundSMS: Executing http://%2B6392377600:pass@127.0.0.1:8800/?phonenumber=888&text=20%20090819362 21:43:14:899 [5] RetrieveURL: Retrieving http://%2B6392377600:pass@127.0.0.1:8800/?phonenumber=888&text=20%20090819362 21:43:14:899 [5] RetrieveURL: Looking up 127.0.0.1 21:43:14:903 [5] RetrieveURL: Retrieving ?phonenumber=888&text=20%20090819362 21:43:14:904 [5] RetrieveURL: GET /?phonenumber=888&text=20%20090819362 HTTP/1.1 | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2650 Registered: 08-2008 |
Hi, I think the problem is because there is a "+" in the sender address. When NowSMS substitutes variables into an HTTP URL command, it URL escapes variable values that require escaping. The http://user:pass@server syntax that we use is not an official HTTP URL format, but one that we borrowed from the FTP URL format. Unfortunately, we are URL escaping the values, which is not appropriate. My advice would be to instead pass the username & password values via URL parameters: http://@127.0.0.1:8800/?user=@@sender@@&password=pass&phonenumber=888&text=10@20 @@sms@@ -- Des NowSMS Support | |||
schadow1 New member Username: Schadow1 Post Number: 2 Registered: 11-2010 |
thanks a lot des. it worked. it is not an issue on the + on the sender address. it was the ftp-like authentication that i am doing. your syntax worked. good job. |