Yaseen Yaseen - 2 years ago 159
PHP Question

restful put method getting wrong result in codeigniter?

I'm creating the android app for my code igniter web site and i want to save data through restful web service but when i send request to my put method it's giving me wrong result.

this is my to view the result.

$data = $this->request->body = file_get_contents('php://input');


Content-Disposition: form-data; name="1"

Content-Disposition: form-data; name="2"


this is my request body:

enter image description here

Answer Source

You need to get data from post


$data = $_POST['name'];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download