• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add body to headers http

#1
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 ?
Reply

#2
what if you do GET query. and send parameter as a GET value? /delete?id=4
Reply

#3
(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
Reply

#4
(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']
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.