gzip

Decode gzipped web page retrieved via cURL in PHP

I'm retrieving a gzipped web page via curl, but when I output the retrieved content to the browser I just get the raw gzipped data. How can I decode the data in PHP? One method I found was to write the content to a tmp file and then ... $f = gzopen($filename,"r"); $content = gzread($filename,250000); gzclose($f); .... but man, there'...

Scriptmanager Asp.Net Mvc

I'd like to have some of the scriptmanager features in the new Asp.net MVC model 1- Script combining 2- Resolving different paths for external javascipt files 3- Minify and Gzip Compression Here is what I found but not sure is the best way for mvc approach. In general what is the your approach to deal with javascript code in the MVC...

Is it possible to use GZIP compression on classic ASP pages?

We've got a classic ASP application that is putting out some very large reports, where the resulting HTML is several MBs. We've made a lot of progress in trimming this down by reducing extraneous HTML, but I'd like to know if there's any way to enable GZIP compression on these dynamic .asp pages. I'm sure compressing them would be an eno...

Downloading the gzip file and Uncompressing to retrieve Content using IPHONE SDK on iphone and ipod touch devices.

Hi, I had the following questions related to downloading the file from the server. a) Is it possible to download directly the GZIP (Compressed)file to the iphone device using IPHONE SDK. b) If the compressed file can be downloaded , then how to uncompress it(using ZLIB or else...). Thank u. ...

Compressing web service request

I have a webservice and client in c#/dotnet and I am using EnableDecompression to gzip compress the responses that I get from the web server. Is it possible to compress the requests as well? ...

Gzip compression using IIS6.0 for files without an extension

Has anyone managed to activate Gzip compression on a website in IIS6 ? We're using Castle Monorail (it's very nice btw) and as a result have clean RESTful URLs with no extensions..... ..... and there's the rub -> as far as we can see we need extensions on our endpoints to allow gzip compression. It seems the only way out is our own HTTP...

Why use deflate instead of gzip for text files served by Apache?

What advantages do either method offer for html, css and javascript files served by a LAMP server. Are there better alternatives? The server provides information to a map application using Json, so a high volume of small files. See also Is there any performance hit involved in choosing gzip over deflate for http compression? ...

Why can't browser send gzip request?

If webserver can send gzip response, why can't browser sent gzip request? ...

How to get the size of a gunzipped file in vim

When viewing (or editing) a .gz file, vim knows to locate gunzip and display the file properly. In such cases, getfsize(expand("%")) would be the size of the gzipped file. Is there a way to get the size of the expanded file? [EDIT] Another way to solve this might be getting the size of current buffer, but there seems to be no such ...

Compression formats with good support for random access within archives?

This is similar to a previous question, but the answers there don't satisfy my needs and my question is slightly different: I currently use gzip compression for some very large files which contain sorted data. When the files are not compressed, binary search is a handy and efficient way to support seeking to a location in the sorted da...

File Compressed by GZIP grows instead of shrinking

I used the code below to compress files and they keep growing instead of shrinking. I comressed a 4 kb file and it became 6. That is understandable for a small file because of the compression overhead. I tried a 400 mb file and it became 628 mb after compressing. What is wrong? See the code. (.net 2.0) Public Sub Compress(ByVal infile A...

htaccess mod_deflate does not work on shared server

Hello. I'm developing a website in PHP and I have large JS files that I want to compress. So, I added this in my .htaccess file: <FilesMatch "\.(js|css|html|htm|php|xml)$"> SetOutputFilter DEFLATE </FilesMatch> It works great on my local wamp server install but once I move the files on my shared server, the DEFLATE command does n...

What's a good tar utility for Windows?

I use Cygwin regularly, but I have a need these days to extract tar.gz and tar.bz2 files on other people's Windows machines. They don't want Cygwin; they need a GUI. I've tried 7-zip, which some other people in our company were using, but 7-zip makes the braindead decision to require you to first uncompress a file to a new destination ...

Is it OK to add the axd extension for IIS' HTTP compression?

I have enabled IIS 6's built in HTTP compression for the following types of files: HcFileExtensions="htm html txt css js" HcScriptFileExtensions="asp dll exe aspx asmx ascx" I am unclear however if it's appropriate to add the axd extension so that my WebResource.axd files will be compressed. Lastly, are ther...

What are some good strategies for determining block size in a deflate algorithm?

Hello all, I'm writing a compression library as a little side project, and I'm far enough along (My library can extract any standard gzip file, as well as produce compliant (but certainly not yet optimal) gzip output) that it's time to figure out a meaningful block termination strategy. Currently, I just cut the blocks off after every...

The file size of jQuery

On jQuery's official website, they say the minified file size is 18k, but after downloading, I found that is 53.9K, do I have to do something to compress it after downloading? ...

.net DeflateStream 4Gb Limit

From msdn: http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream.aspx This class cannot be used to compress files larger than 4 GB. Do you know any other implementations for .net without the 4 gb limit? Thanks NOTE: I really need to decompress a file in GZ format with content larger than 4gb. Do you know any co...

Why does exec-ing gtar hang my Perl program?

When using gtar to add extra files to an existing archive, the loop terminates prematurely or hangs. It also terminates after creating the initial tar.gz file. However, if I remove the gtar calls from the loop and put print statements in their place instead, the loop executes as expected. Does anyone know why this is? Below is the code ...

#ZipLib error while decompressing GZip

Hello, I'm getting this error while trying to decompress some GZ files with #ZipLib 0.85.5 Those file are not corrupted, I'm able to decompress it correctly using 7-Zip. ICSharpCode.SharpZipLib.SharpZipBaseException Unexpected EOF Any idea? Thanks ...

Tomcat Compression Does Not Add a Content-Encoding: gzip in the Header

I am using Tomcat to compress my HTML content like this: <Connector port="8080" maxHttpHeaderSize="8192" maxProcessors="150" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="150" connectionTimeout="20000" disableUploadTimeout="true" compression="on" compressionMinSize="128...