Welcome Guest, Not a member yet? Register   Sign In
A post from android with data gives 404 error

(02-10-2016, 06:18 AM)muchemi Wrote: Dear All,

I have a recurring problem that has stalled me for 2 weeks now. An upload of a json from an android app returns an error 404 when it calls a code igniter controller function.

Initially i assumed it was an issue with the app and after updating eclipse, changing to android studio and changing laptops and changing libraries the problem persisted.

I then concentrated on the server and realised that a direct simple php script works but a code igniter controller does not. I upgraded CI from 2.1.2 to 3.0.4 and it still returns 404. This only happens if the post had parameter values. if the post has no values it returns 200.

Simple php that works

           echo $_POST["email"];      

CI code that does not work

public function __construct() {

public function post()
   echo $this->input->post('email');

Hi , You want to send / Receive the data from android .. CI provides The Best Web services You will go for that .. refer this link ... http://code.tutsplus.com/tutorials/worki...--net-8814.
this restful Web services is easy to receive/send the json data

Messages In This Thread
RE: A post from android with data gives 404 error - by Chandini - 02-16-2016, 02:32 AM

Theme © iAndrew 2016 - Forum software by © MyBB