last day (14 days later) » 

10:41 AM
0
Q: Rest PHP receiving values from android side

RajeshwarRest File:Rest.inc.php <?php class REST { public $_allow = array(); public $_content_type = "application/json"; public $_request = array(); private $_method = ""; private $_code = 200; public function __construct(){ $this->inputs(); } public...

 
Require help urgently..Thanks in advance
 
If you add print_r($_GET); inside TEST_VAL function what does it print when request arrives from Android
 
give me 5 mins..i will give it a try and let you know
print_r($_POST) printed 1 in my logfile inside the TEST_VAL function
Anubhava, is the question clear or should I make it more easy in understanding
 
It is clear to me. What does get_request_method RESTS=> log line prints for Android request?
 
it prints POST.
 
10:41 AM
And what do you get in same log when requesting from Chrome rest client?
 
same POST
 
ok add var_dump($this->_request); at the start of TEST_VAL and see what it prints in both cases
 
10:57 AM
ok
null when hitting from rest client
but still i am getting proper response with value that i am passing
 
that means there is some PHP issue here not a rewrite issue
just add var_dump($_REQUEST) at few entry points and see what is different between 2 channels
 
11:26 AM
getting repeated nulls everywhere wherever I am putting that
 
 
1 hour later…
12:26 PM
yes that's you need to debug it starting from entry point in your PHP code to every where else and see where it is becoming null and where it is not
 

last day (14 days later) »