Receiving SMS Problem

Receiving SMS Problem SearchSearch
Author Message
Neo
Unregistered guest
Posted on Monday, January 24, 2005 - 01:43 pm:   

Hello all.
I amd using NowSMS gateway for sending and receiving SMS with a GSM Modem by the following way:
In the 2-Way panel i added a command to execute "http://127.0.0.1:xxxx/@@FULLSMS@@" as example,
then i developed a receiving program that listens to that port 'xxxx',
and receive the FULLSMS from every message received, right?
When close the receiving program and open it again, it receives all the old SMSs again,
that i think are stored in SMS-IN folder by extension '*.in'
That action happened every time i restart my receiver program.
Can you help me please? And, Is work right?
Thanks.
Neo
Unregistered guest
Posted on Tuesday, January 25, 2005 - 05:57 pm:   

Hello.
Is there any body can help me in that problem
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3977
Registered: 10-2002
Posted on Wednesday, January 26, 2005 - 05:23 pm:   

Hi Neo,

Your receiving program needs to return a proper HTTP response. This tells us that the message was received ok.

If we don't get this response, then messages will be retried.

A basic HTTP OK response looks like this:

HTTP/1.0 200 OK
Content-type: text/plain
Content-length: xxxx
(blank line)
text

"xxxx" refers to the length of the text that is included as the content.

You can specify "Content-length: 0" if you don't want to include any content in your reply.

Note that any returned content can be sent back as a reply to the SMS if "Command returns response text" is checked.

-bn
Neo
Unregistered guest
Posted on Saturday, January 29, 2005 - 06:29 pm:   

Thank you very much Bryce.

It works good.