Welcome Guest, Not a member yet? Register   Sign In
How do you get request body data in controller?
#1

[eluser]SpudNik[/eluser]
Hey all..

I am POSTing data to my ci controller using content-type application/json. I know that input->post() will not work. I read somewhere that there is a class that will allow me to get the request body data. Is this documented? I could find anything but input->post Any examples? Basically I just want to get key/value pairs from json being posted to my controller and I'd rather not change the content-type header if possible.

Thanks!


Messages In This Thread
How do you get request body data in controller? - by El Forum - 02-18-2012, 03:05 PM
How do you get request body data in controller? - by El Forum - 02-18-2012, 04:46 PM
How do you get request body data in controller? - by El Forum - 02-18-2012, 07:16 PM
How do you get request body data in controller? - by El Forum - 02-18-2012, 08:56 PM
How do you get request body data in controller? - by El Forum - 02-19-2012, 01:05 PM
How do you get request body data in controller? - by El Forum - 02-19-2012, 01:16 PM
How do you get request body data in controller? - by El Forum - 02-19-2012, 04:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB