CodeIgniter Forums

Full Version: Add body to headers http
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello
I programming mobile app that need call delete method in api
But i cannot send body to relate method with parameter
Is there header key for add parameter into key and send api ?
what if you do GET query. and send parameter as a GET value? /delete?id=4
(11-28-2017, 01:55 AM)neuron Wrote: [ -> ]what if you do GET query. and send parameter as a GET value? /delete?id=4

I send it but in api it return empty
I use restful library that exist for codeigniter
I report $_SERVER and see it and it exist in arg paramter
But restful cannot get it
(11-28-2017, 02:08 AM)omid_student Wrote: [ -> ]
(11-28-2017, 01:55 AM)neuron Wrote: [ -> ]what if you do GET query. and send parameter as a GET value? /delete?id=4

I send it but in api it return empty
I use restful library that exist for codeigniter
I report $_SERVER and see it and it exist in arg paramter
But restful cannot get it

It solved Thanks
I get parameter with $_SERVER['argv']