A few more questions covering a few topics.. |
[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?
[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?
[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?
[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:
[eluser]Lovecannon[/eluser]
-_-'. I already knew that. But let me clarify, I meant to disable it from a controller.
[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-gui...onfig.html, the trick for general controllers which I found is to have a line that reads: $this->config->set_item('compress_output',FALSE); |
Welcome Guest, Not a member yet? Register Sign In |