![]() |
A few more questions covering a few topics.. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: A few more questions covering a few topics.. (/showthread.php?tid=4817) |
A few more questions covering a few topics.. - El Forum - 12-17-2007 [eluser]Lovecannon[/eluser] Lets see..for starters I am going to implement a JSON-RPC approach to web services, instead of XML(for many reasons, XML is verbose, and bloated), and I was wondering, how can i access HTTP_RAW_POST_DATA, would that be under $this->input->server()? And also, I currently have XML-RPC as well, and I have output compression set to true in my config file..is this going to interfere with my pre-existing XML-RPC service or a future JSON-RPC service? A few more questions covering a few topics.. - El Forum - 12-17-2007 [eluser]Lovecannon[/eluser] Well, I found out that GZIP compression is disabled when the rpc method is called, how can I disable compression on certain pages? A few more questions covering a few topics.. - El Forum - 12-18-2007 [eluser]Lovecannon[/eluser] Anyone have any solutions? A few more questions covering a few topics.. - El Forum - 12-19-2007 [eluser]Lovecannon[/eluser] Well, I figured I can read the raw post data with file_get_contents('php://input'), but is there a way to disable CIs auto compression? A few more questions covering a few topics.. - El Forum - 12-19-2007 [eluser]JamesD[/eluser] [quote author="Lovecannon" date="1198120528"]Well, I figured I can read the raw post data with file_get_contents('php://input'), but is there a way to disable CIs auto compression?[/quote] Hello Lovecannon, Have you changed the line in your config.php? This may help... Quote:Open your application/config/config.php file and add this new item: A few more questions covering a few topics.. - El Forum - 12-19-2007 [eluser]Lovecannon[/eluser] -_-'. I already knew that. But let me clarify, I meant to disable it from a controller. A few more questions covering a few topics.. - El Forum - 05-04-2010 [eluser]rlaskey[/eluser] This post is rather old, but since it came up with the Googles and without a response, I figured I'd post what I found: re: http://ellislab.com/codeigniter/user-guide/libraries/config.html, the trick for general controllers which I found is to have a line that reads: $this->config->set_item('compress_output',FALSE); |