Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid response type text/xml or html #28

Open
rref opened this issue Jun 7, 2012 · 2 comments
Open

Invalid response type text/xml or html #28

rref opened this issue Jun 7, 2012 · 2 comments

Comments

@rref
Copy link

rref commented Jun 7, 2012

I have these error on application log when it checking messages.
I also use only these code as server URL/sms.php only outgoing sms

require_once "config.php";
require_once "EnvayaSMS.php";
//$request = EnvayaSMS::get_request();

header("Content-Type: text/xml");

$porr = new EnvayaSMS_OutgoingMessage();
$porr->id = $idall;
$porr->to = $_POST['mobile'];
$porr->message = $_POST['message'];
$porr->type= 'sms';

@youngj
Copy link
Owner

youngj commented Jun 7, 2012

See http://sms.envaya.org/serverapi/upgrade30.html

On Thu, Jun 7, 2012 at 7:21 AM, rref
[email protected]
wrote:

I have these error on application log when it checking messages.
I also use only these code as server URL/sms.php

 require_once "config.php";
require_once "EnvayaSMS.php";
//$request = EnvayaSMS::get_request();

header("Content-Type: text/xml");

$porr = new EnvayaSMS_OutgoingMessage();
$porr->id = $idall;
$porr->to = $_POST['mobile'];
$porr->message = $_POST['message'];
$porr->type= 'sms';


Reply to this email directly or view it on GitHub:
#28

@rref
Copy link
Author

rref commented Jun 7, 2012

im using EnvayaSMS 3.0.1 , so this line header("Content-Type: text/xml"); is header("Content-Type: {$request->get_response_type()}"); and its the same thing..
maybe it get wrong becouse i made function eg. send_sms() {
require_once "config.php";
require_once "EnvayaSMS.php";
$request = EnvayaSMS::get_request();

header("Content-Type: {$request->get_response_type()}");

$porr = new EnvayaSMS_OutgoingMessage();
$porr->id = $idall;
$porr->to = $_POST['mobile'];
$porr->message = $_POST['message'];
$porr->type= 'sms'; }

but when i put require_once "config.php";
require_once "EnvayaSMS.php"; out from function send_sms()
i get error on web page, but no error on app log. :S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants