Welcome Guest, Not a member yet? Register   Sign In
A few more questions covering a few topics..
#1

[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?
#2

[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?
#3

[eluser]Lovecannon[/eluser]
Anyone have any solutions?
#4

[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?
#5

[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:

/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not "echo" any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
#6

[eluser]Lovecannon[/eluser]
-_-'. I already knew that. But let me clarify, I meant to disable it from a controller.
#7

[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);




Theme © iAndrew 2016 - Forum software by © MyBB