Welcome Guest, Not a member yet? Register   Sign In
i wanna test gzip
#1

[eluser]Unknown[/eluser]
Hey , some body tell me if CI has a helper for gzip HTTP requesting and responding or no ,

also i wanna test gzip request from a function to another one without using file_get_content as i don't have the URL ,
thanks
#2

[eluser]danmontgomery[/eluser]
application/config/config.php

Code:
/*
|--------------------------------------------------------------------------
| 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;
#3

[eluser]Unknown[/eluser]
thnx noctrum ,
but that's not my prob , There is a request to my function comes with "Content-Encoding: gzip" data in $_POST
i need to decompress this data
#4

[eluser]Nicholas Bello[/eluser]
Take a look at PHP's gzdecode() function and let me know if that's what you are looking for.

Nick




Theme © iAndrew 2016 - Forum software by © MyBB