Content type: | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through July 14, 2004 ⬆ |
◄ ► |
Author | Message | |||
Mats Hedberg New member Username: Mhedda Post Number: 1 Registered: 06-2004 |
Hello! 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: text/html What isa wrong? Here is some code: //Svarssms errormessage if($error=="2"){ $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..!";} elseif($error=="0"){ $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 |
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. -bn |