I receive a reply sms "Command not Completed" | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through September 15, 2006 ⬆ |
◄ ► |
Author | Message | ||||
Dinesh Bharathy Arumugam New member Username: Gistdinesh Post Number: 1 Registered: 07-2006 |
I am trying to send an SMS from a mobile phone, to my GSMNumber, which I have configured with a GSM Modem, connected to NowSMS Gateway. I have set up a HTTPPost to process received SMS under 2-way SMS Tab. Though I am able to process the received SMS, the gateway sends a reply sms, to my Phone, saying... "Command not completed. Request returned invalid content type: text/html; charset=utf-8" Can any one tell me why I receive that SMS? I have attached the debuglog for you assistance.
| ||||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6239 Registered: 10-2002 |
Yes. If you want your script to return a response back to the phone, you need to configure your script to return content of the type "text/plain". With plain old ASP, you do this by including the following in your response: <% Response.ContentType="text/plain" %> But I don't know if the process of setting the content type is different in ASP.NET. If you do not want your script to return a response back to the phone, you need to edit the 2-way command definition in NowSMS, and UNcheck "Command returns response text". -bn |