Receving SMS with HTTP command

Receving SMS with HTTP command SearchSearch
Author Message
Sathish Kumar N
New member
Username: Nsathish

Post Number: 1
Registered: 10-2003
Posted on Tuesday, October 21, 2003 - 08:42 am:   

I am receiving same SMS message multiple times from gateway, when I give a http command request in the 'Command Execute' line. How do I avoid it?. Should I respond with any specific string to the gateway?.
I am using the command string:
http://164.16.2.11:2010/?name=@@SENDER@@&Message=@@FULLSMS@@

Thanks
Satish
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 935
Registered: 10-2002
Posted on Tuesday, October 21, 2003 - 11:15 am:   

Hi Satish,

You need to respond with an HTTP 200 OK response (standard "OK" response in HTTP environment), otherwise the gateway thinks that an error occurred.

-bn
Sathish Kumar N
New member
Username: Nsathish

Post Number: 2
Registered: 10-2003
Posted on Tuesday, October 21, 2003 - 12:47 pm:   

I have given http command request in the 'Command Execute' line. When I receive the HTTP request I get in this format;

"GET /?name=%2B919886092167&Message=Hi%20sathish HTTP/1.0\r\nUser-Agent: Now SMS/MMS Gateway v5.0 (b20031006)\r\nAccept: */*\r\nConnection: Close\r\nHost: 164.16.2.11:2010\r\n\r\n"

In what format I should send HTTP Response to gateway from my application so that it recognizes the format.

Thanks,
Satish
Sathish Kumar N
New member
Username: Nsathish

Post Number: 4
Registered: 10-2003
Posted on Tuesday, October 21, 2003 - 02:12 pm:   

I am sending HTTP 200 OK response to gateway in the following format;

"HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\n";

Still I am receiving same SMS message multiple times from gateway. What I should I do to come across this problem?.

Thanks,
Satish
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 937
Registered: 10-2002
Posted on Tuesday, October 21, 2003 - 06:46 pm:   

Satish,

I would probably have to see a debug log from the gateway to see what the response is that the gateway is seeing back from your application.

Manually edit SMSGW.INI, and under the [SMSGW] section header, add Debug=Yes. Then restart the NowSMS gateway.

After the gateway tries to connect to your script, e-mail me the SMSDEBUG.LOG (to nowsms@now.co.uk), or reply here and cut & paste the section of that file just before and just after NowSMS attempts to execute your command.
sathishn
New member
Username: Sathishn

Post Number: 2
Registered: 10-2003
Posted on Tuesday, October 21, 2003 - 08:12 pm:   

Thanks for the reply.
I have manually edited SMSGW.INI, under the [SMSGW] section header and added Debug=Yes. Then restarted the NowSMS gateway.
After the gateway connected to my script, I have attached SMSDEBUG.LOG here. Please have a look in to that why the old messages are always getting repeated to me.

I have send mail to nowsms@now.co.uk with SMSDEBUG.log attached. I am pasting a part of that file here.
==============================================
00:11:00:978 [3] ThreadProcessInboundSMS: Processing 3F954C1F.in...
00:11:01:078 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:01:078 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:03:081 [3] ThreadProcessInboundSMS: Processing 3F94D2E9.in...
00:11:03:151 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:03:151 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:04:082 [3] ThreadProcessInboundSMS: Processing 3F94D2EA.in...
00:11:04:152 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:04:152 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:05:084 [3] ThreadProcessInboundSMS: Processing 3F94D3F9.in...
00:11:05:154 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:05:154 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:06:085 [3] ThreadProcessInboundSMS: Processing 3F954C1E.in...
00:11:06:155 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:06:155 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:07:086 [3] ThreadProcessInboundSMS: Processing 3F954C1F.in...
00:11:07:157 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:07:157 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:08:088 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=hello?
00:11:08:088 [3] RetrieveURL: GET /?name=%2B919844152598&Message=hello? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:09:780 [3] RetrieveURL: got success response
00:11:09:780 [3] RetrieveURL: text/plain\r\n\r\n
00:11:10:782 [3] ThreadProcessInboundSMS: Processing 3F94D2E9.in...
00:11:10:852 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:10:852 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:10:852 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20balu?
00:11:10:852 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20balu? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:10:902 [3] RetrieveURL: got success response
00:11:10:902 [3] RetrieveURL: text/plain\r\n\r\n
00:11:10:902 [3] ThreadProcessInboundSMS: Processing 3F94D2EA.in...
00:11:11:082 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:11:082 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:11:082 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:11:082 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:11:703 [3] RetrieveURL: got success response
00:11:11:703 [3] RetrieveURL: text/plain\r\n\r\n
00:11:11:703 [3] ThreadProcessInboundSMS: Processing 3F94D3F9.in...
00:11:11:903 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:11:903 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:11:903 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:11:903 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:12:514 [3] RetrieveURL: got success response
00:11:12:514 [3] RetrieveURL: text/plain\r\n\r\n
00:11:12:514 [3] ThreadProcessInboundSMS: Processing 3F954C1E.in...
00:11:12:705 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:12:705 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:12:705 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=test%20message?
00:11:12:705 [3] RetrieveURL: GET /?name=%2B919844152598&Message=test%20message? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:13:315 [3] RetrieveURL: got success response
00:11:13:315 [3] RetrieveURL: text/plain\r\n\r\n
00:11:13:315 [3] ThreadProcessInboundSMS: Processing 3F954C1F.in...
00:11:13:506 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:13:506 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:13:506 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=hello?
00:11:13:506 [3] RetrieveURL: GET /?name=%2B919844152598&Message=hello? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:14:117 [3] RetrieveURL: got success response
00:11:14:117 [3] RetrieveURL: text/plain\r\n\r\n
00:11:15:118 [3] ThreadProcessInboundSMS: Processing 3F94D2E9.in...
00:11:15:318 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:15:318 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:15:318 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20balu?
00:11:15:318 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20balu? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:15:979 [3] RetrieveURL: got success response
00:11:15:979 [3] RetrieveURL: text/plain\r\n\r\n
00:11:15:979 [3] ThreadProcessInboundSMS: Processing 3F94D2EA.in...
00:11:16:049 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:16:049 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:16:049 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:16:049 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:17:001 [3] RetrieveURL: got success response
00:11:17:001 [3] RetrieveURL: text/plain\r\n\r\n
00:11:17:001 [3] ThreadProcessInboundSMS: Processing 3F94D3F9.in...
00:11:17:071 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:17:071 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:17:191 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:17:191 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:17:812 [3] RetrieveURL: got success response
00:11:17:812 [3] RetrieveURL: text/plain\r\n\r\n
00:11:17:812 [3] ThreadProcessInboundSMS: Processing 3F954C1E.in...
00:11:17:882 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:17:882 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:18:002 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=test%20message?
00:11:18:002 [3] RetrieveURL: GET /?name=%2B919844152598&Message=test%20message? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:18:613 [3] RetrieveURL: got success response
00:11:18:613 [3] RetrieveURL: text/plain\r\n\r\n
00:11:18:613 [3] ThreadProcessInboundSMS: Processing 3F954C1F.in...
00:11:18:923 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:18:923 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:18:923 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=hello?
00:11:18:923 [3] RetrieveURL: GET /?name=%2B919844152598&Message=hello? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:19:534 [3] RetrieveURL: got success response
00:11:19:534 [3] RetrieveURL: text/plain\r\n\r\n
00:11:20:626 [3] ThreadProcessInboundSMS: Processing 3F94D2E9.in...
00:11:20:826 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:20:826 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:20:826 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20balu?
00:11:20:826 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20balu? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:21:437 [3] RetrieveURL: got success response
00:11:21:437 [3] RetrieveURL: text/plain\r\n\r\n
00:11:21:437 [3] ThreadProcessInboundSMS: Processing 3F94D2EA.in...
00:11:21:627 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:21:627 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:21:627 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:21:627 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:22:228 [3] RetrieveURL: got success response
00:11:22:228 [3] RetrieveURL: text/plain\r\n\r\n
00:11:22:228 [3] ThreadProcessInboundSMS: Processing 3F94D3F9.in...
00:11:22:418 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:22:418 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:22:418 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:22:418 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:23:039 [3] RetrieveURL: got success response
00:11:23:039 [3] RetrieveURL: text/plain\r\n\r\n
00:11:23:039 [3] ThreadProcessInboundSMS: Processing 3F954C1E.in...
00:11:23:230 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:23:230 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:23:230 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=test%20message?
00:11:23:230 [3] RetrieveURL: GET /?name=%2B919844152598&Message=test%20message? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:23:841 [3] RetrieveURL: got success response
00:11:23:841 [3] RetrieveURL: text/plain\r\n\r\n
00:11:23:841 [3] ThreadProcessInboundSMS: Processing 3F954C1F.in...
00:11:24:031 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:24:031 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:24:031 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=hello?
00:11:24:031 [3] RetrieveURL: GET /?name=%2B919844152598&Message=hello? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:24:652 [3] RetrieveURL: got success response
00:11:24:652 [3] RetrieveURL: text/plain\r\n\r\n
00:11:25:753 [3] ThreadProcessInboundSMS: Processing 3F94D2E9.in...
00:11:25:944 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:25:944 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:25:944 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20balu?
00:11:25:944 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20balu? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:26:544 [3] RetrieveURL: got success response
00:11:26:544 [3] RetrieveURL: text/plain\r\n\r\n
00:11:26:665 [3] ThreadProcessInboundSMS: Processing 3F94D2EA.in...
00:11:26:735 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:26:735 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:26:735 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:26:735 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:27:346 [3] RetrieveURL: got success response
00:11:27:346 [3] RetrieveURL: text/plain\r\n\r\n
00:11:27:346 [3] ThreadProcessInboundSMS: Processing 3F94D3F9.in...
00:11:27:426 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:27:426 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:27:546 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:27:546 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:28:147 [3] RetrieveURL: got success response
00:11:28:147 [3] RetrieveURL: text/plain\r\n\r\n
00:11:28:147 [3] ThreadProcessInboundSMS: Processing 3F954C1E.in...
00:11:28:217 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:28:217 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:28:337 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=test%20message?
00:11:28:337 [3] RetrieveURL: GET /?name=%2B919844152598&Message=test%20message? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:28:948 [3] RetrieveURL: got success response
00:11:28:948 [3] RetrieveURL: text/plain\r\n\r\n
00:11:28:948 [3] ThreadProcessInboundSMS: Processing 3F954C1F.in...
00:11:29:138 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:29:138 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:29:138 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=hello?
00:11:29:138 [3] RetrieveURL: GET /?name=%2B919844152598&Message=hello? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:29:769 [3] RetrieveURL: got success response
00:11:29:769 [3] RetrieveURL: text/plain\r\n\r\n
00:11:30:851 [3] ThreadProcessInboundSMS: Processing 3F94D2E9.in...
00:11:31:041 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:31:041 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:31:041 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20balu?
00:11:31:041 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20balu? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:31:662 [3] RetrieveURL: got success response
00:11:31:662 [3] RetrieveURL: text/plain\r\n\r\n
00:11:31:662 [3] ThreadProcessInboundSMS: Processing 3F94D2EA.in...
00:11:31:852 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:31:852 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:31:852 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:31:852 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:32:463 [3] RetrieveURL: got success response
00:11:32:463 [3] RetrieveURL: text/plain\r\n\r\n
00:11:32:463 [3] ThreadProcessInboundSMS: Processing 3F94D3F9.in...
00:11:32:653 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:32:653 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:32:653 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:32:653 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:33:264 [3] RetrieveURL: got success response
00:11:33:264 [3] RetrieveURL: text/plain\r\n\r\n
00:11:33:264 [3] ThreadProcessInboundSMS: Processing 3F954C1E.in...
00:11:33:494 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:33:494 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:33:494 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=test%20message?
00:11:33:494 [3] RetrieveURL: GET /?name=%2B919844152598&Message=test%20message? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:34:125 [3] RetrieveURL: got success response
00:11:34:125 [3] RetrieveURL: text/plain\r\n\r\n
00:11:34:125 [3] ThreadProcessInboundSMS: Processing 3F954C1F.in...
00:11:34:316 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:34:316 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:34:316 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=hello?
00:11:34:316 [3] RetrieveURL: GET /?name=%2B919844152598&Message=hello? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:34:916 [3] RetrieveURL: got success response
00:11:34:916 [3] RetrieveURL: text/plain\r\n\r\n
00:11:36:138 [3] ThreadProcessInboundSMS: Processing 3F94D2E9.in...
00:11:36:208 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:36:208 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20balu?
00:11:36:208 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20balu?
00:11:36:208 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20balu? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:36:819 [3] RetrieveURL: got success response
00:11:36:819 [3] RetrieveURL: text/plain\r\n\r\n
00:11:36:819 [3] ThreadProcessInboundSMS: Processing 3F94D2EA.in...
00:11:36:889 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:36:889 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:36:889 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:36:889 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:37:640 [3] RetrieveURL: got success response
00:11:37:640 [3] RetrieveURL: text/plain\r\n\r\n
00:11:37:640 [3] ThreadProcessInboundSMS: Processing 3F94D3F9.in...
00:11:37:710 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:37:710 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919886092167&Message=Hi%20sathish?
00:11:37:831 [3] RetrieveURL: Retrieving ?name=%2B919886092167&Message=Hi%20sathish?
00:11:37:831 [3] RetrieveURL: GET /?name=%2B919886092167&Message=Hi%20sathish? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:38:442 [3] RetrieveURL: got success response
00:11:38:442 [3] RetrieveURL: text/plain\r\n\r\n
00:11:38:442 [3] ThreadProcessInboundSMS: Processing 3F954C1E.in...
00:11:38:512 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:38:632 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=test%20message?
00:11:38:632 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=test%20message?
00:11:38:632 [3] RetrieveURL: GET /?name=%2B919844152598&Message=test%20message? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


00:11:39:243 [3] RetrieveURL: got success response
00:11:39:243 [3] RetrieveURL: text/plain\r\n\r\n
00:11:39:243 [3] ThreadProcessInboundSMS: Processing 3F954C1F.in...
00:11:39:433 [3] ThreadProcessInboundSMS: Executing http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:39:433 [3] RetrieveURL: Retrieving http://164.16.2.11:2010/?name=%2B919844152598&Message=hello?
00:11:39:433 [3] RetrieveURL: Retrieving ?name=%2B919844152598&Message=hello?
00:11:39:433 [3] RetrieveURL: GET /?name=%2B919844152598&Message=hello? HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: 164.16.2.11:2010


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 944
Registered: 10-2002
Posted on Tuesday, October 21, 2003 - 10:12 pm:   

Got it.

NowSMS expects some content in the response, even if the response is not being returned back to the phone.

Change your response to this:

"HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\nOK\r\n"

... and you should be ok.
sathishn
New member
Username: Sathishn

Post Number: 3
Registered: 10-2003
Posted on Wednesday, October 22, 2003 - 05:15 am:   

Thanks a lot. It is working fine. Now only once I am getting the message from gateway. I need to send back the reply from my application to gateway("Sender Number" and "SMS Message").What is the format that I need to send?. Can I use the same format that I receive?. Please send me the format so that it will be useful for me to Send & Receive.

Thanks,
Satish N
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 945
Registered: 10-2002
Posted on Wednesday, October 22, 2003 - 07:11 pm:   

Satish,

There are three ways to reply back to a received message.

1.) If "Command returns response text" is checked for the command, then NowSMS expects the application to return a response of the MIME type "text/plain", with the text of the response in the body of the reply. (In your example, the text of the reply would be "OK" if "Command returns response text" was checked.

2.) The script can open a new HTTP connection to the gateway and submit a message by issuing an HTTP request over the new connection.

3.) The script can return a redirect response. This approach is described here: http://www.nowsms.com/support/bulletins/tb-nowsms-003.htm. In this approach, the new URL for sending a message is returned in the "Location:" header. For example:

HTTP/1.0 302 Redirect
Location: http://127.0.0.1:8800/?PhoneNumber=xxxx&Text=text+of+message