
Hi, I have implemented the Codeigniter Rest Server <https://github.com/chriskacerguis/codeigniter-restserver> as described in numerous tutorials. I can make requests like *http://localhost/folder/api/controller/postfunction <http://localhost/folder/api/controller/postfunction>* and get a JSON response. The issue is when I host the files on a different server. Making a request like *http://server_ip/api/controller/postfunction <http://server_ip/api/controller/postfunction>* I get the response as status 0 with the message *Empty reply from server*. After combing StackOverflow, I understand that the issue could be as a result of the request timing out or being cancelled before a response was received. But when I access *http://server_ip/api/ <http://server_ip/api/>* I get 404 from Codeigniter. Which is okay. The issue arises when I access the controller file Controller.php i.e. *http://server_ip/api/controller/ <http://server_ip/api/controller/>* Any thoughts on how to go about resolving this? NB: the Controller.php has this line of code require APPPATH.'/libraries/REST_Controller.php'; Could this be a source of the issue? Regards, Allan