I receive a reply sms "Command not Completed"

I receive a reply sms "Command not Completed" SearchSearch
Author Message
Dinesh Bharathy Arumugam
New member
Username: Gistdinesh

Post Number: 1
Registered: 07-2006
Posted on Tuesday, July 18, 2006 - 09:31 am:   

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.

text/plainSMSDEBUG.log
SMSDebugLog.txt (4.0 k)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6239
Registered: 10-2002
Posted on Wednesday, July 26, 2006 - 08:10 pm:   

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