Hi, 

I am not an expert to Andriod Application, mainly into PHP web development. 
Last week I outsource my mobile applcation to a developer and he is 
confused how to submit data to PHP web service, he decided to use JSON 
format, 

I would like to know how many ways we can submit the data from a mobile 
application to a PHP web service. Can it be in both GET and POST methods, 
so that we can access form elements from the $_POST and $_GET Method. 

Finally I received an answer from the developer saying I have to access the 
data variables using below method, 

$postdata = file_get_contents("php://input");
$vars=json_decode($postdata);

Is this the only way to submit data from Andriod App to PHP we service, I 
would like hear from an expert. Also need to know whether this is secure or 
insecure. 

thanks a lot, for your time. 
Shyjo 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-security-discuss+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-security-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to