Content type:

Content type: SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through July 14, 2004 » Content type: « Previous || Next »
Author Message
Mats Hedberg
New member
Username: Mhedda

Post Number: 1
Registered: 06-2004
Posted on Tuesday, June 01, 2004 - 08:08 am:   

I have a problem with receiving a sms.
When I send an sms i want to recieve an answer so far so good cause I'm getting an answer but two seconds later i recieve anouther sms with this:
Command not completed. Request returned invalid content type:
What isa wrong?
Here is some code:
//Svarssms errormessage

$error="No such amount m3 on that area.";}
elseif ($error=="3"){
$error="No such assort on that area..";}
elseif ($error=="4"){
$error="No such area..!";}
$error="The values has been saved..!";}
$error = str_replace(" ", "+", $error);

header("Content-type: text/plain");
header("Location: http://Path:Port/?User=".$userName."&Password=".$passWord."&PhoneNumber=".$mobil e."&Text=".$error."");

KindRegards mhedda
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2696
Registered: 10-2002
Posted on Friday, June 04, 2004 - 06:28 pm:   

Hi Mats,

Apologies for the delay in responding back to you.

In your definition of the command in the "2-way" table, please uncheck "Command returns response text".

In this case, what NowSMS is complaining about is that the redirect is not returning content in "text/plain" format.


Login Login / Register Logout Logout Search Last 30 Days Topics Topics