gzip

How to build a custom binding by having WSHttpBinding security and GZip compression?

Hi, i am facing a problem here. I am doing a client/server project, which is WCF web service calling to get data.Due to huge data of transfering, i got to change my binding to custom binding programmatically(not by config file.) I am creating a new user-define binding aka custom binding. example of the class is : public class MyCustomB...

PHP + gzip: close connection and continue executing

I am responsible for the backend portion of an API, written in PHP, which is primarily used by a Flash client. What happens right now is: the Flash client makes a call, the backend loads the necessary data, does any necessary processing and post processing, logging and caching and then returns the result to the client. What I would like...

Python gzip: is there a way to decompress from a string?

I've read this SO post around the problem to no avail. I am trying to decompress a .gz file coming from an URL. url_file_handle=StringIO( gz_data ) gzip_file_handle=gzip.open(url_file_handle,"r") decompressed_data = gzip_file_handle.read() gzip_file_handle.close() ... but I get TypeError: coercing to Unicode: need string or buffer, c...

Why are my ASPX pages not being compressed with Gzip enabled?

So I set up gzip compression within IIS 6. I enabled the compression for both static files and application files. I set up a temp directory with the size of 1,024 MB. I modified the Metbase to include: htm,html,js,css,aspx,xml I set the compression level to 9. I added a WSE, called HttoCompression and set it to the gzip.dll aset it ...

Server Side Includes and GZip?

Is it possible to use GZip compression on the ouput of files that have been created using server side includes in IIS 6? If so how? ...

serving gziped files only - a good idea?

I have a web service that serves widgets. For scalability sake I want to keep gzipped versions of the js files on Amazon S3. The thing is that browswers not able to accept gzipped files will not be served. Anyone know where I can find statistics to know how many of the potential users will not be served? Is it a good idea in general? ...

add tar/gzip to windows command line

As the title says - anyone know of a method to add tar/gzip to the command line in Windows? I've installed Cygwin - but don't know if I have to add something to the PATH env variable to get tar as a cmd option ...

Apache lags when responding to gzipped requests

For an application I'm developing, the user submits a gzipped HTTP POST request (content-encoding: GZIP) with multipart form data (content-type: multipart/form-data). I use mod_deflate as an input filter to decompress and the web request is processed in Django via mod_wsgi. Generally, everything is fine. But for certain requests (dete...

Android: HTTP communication should use "Accept-Encoding: gzip"

I've a HTTP communication to a webserver requesting JSON data. I'd like compress this data stream with Content-Encoding: gzip. Is there a way I can set Accept-Encoding: gzip in my HttpClient? The search for gzip in the Android References doesn't show up anything related to HTTP, as you can see here. ...

Deflate compression browser compatibility and advantages over GZIP

UPDATE Sept 11 2010: A testing platform has been created for this here HTTP 1.1 definitions of GZIP and DEFLATE (zlib) for some background information: " 'Gzip' is the gzip format, and 'deflate' is the zlib format. They should probably have called the second one 'zlib' instead to avoid confusion with the raw deflate compressed ...

Does the common HTTP server implementation decompress POSTed form data?

If I GZip the a POST request form data, will a HTTP server decompress it, or it only works the other way (server -> client)? ...

How to measure size of NSMutableURLRequest 's response before http-ungzip

One of my view needs a big JSON file for tableview. I use gzip in HTTP request, but want to be sure of size. The problem: How to measure size before and after ungzip? or how to know how strong gzip is? This my code sample: NSURL *url=[NSURL URLWithString:urlWithDate]; NSMutableURLRequest *urlR=[NSMutableURLRequest requestWithURL:url ...

GZip encoding - what are the potential issues (old versions of IE etc)?

I can vaguely remember that there are certain older versions of certain browsers that do weird things with GZip encoding - in particular I seem to recall a bug in IE which resulted in JavaScript sent over GZip getting mangled. Vague recollections aren't much practical use though. Does anyone know exactly what kind of issues there are an...

How do I gzip my html source

I would like to gzip the html sources of my webpages, what's the best way to do it on a lighttpd/php5 server. I have tried to do it by editing my php.ini file with: zlib.output_compression = On zlib.output_handler = On but it seems to be a transparent compression only. ...

Chrome saving streamed file as .gz

I have been banging my head against the wall with this odd behaviour on Chrome I have files stored encrypted on disk in an unnamed, unordered state. when the files are downloaded by the user, the client is redirected to a download handlers (.ashx) the data is loaded into a stream, decrypted and sent to the client. Now this has worked fi...

Data compression for ADO.NET data services

I have an ADO.NET data service exposed by a .NET app (not IIS) which is consumed by a .NET client app. Some calls to this data service return large amounts of data. I'd like to compress the XML data on the wire to reduce payload and improve performance. Is this possible? ...

Get uncompressed size of a .gz file in python

Using gzip, tell() returns the offset in the uncompressed file. In order to show a progress bar, I want to know the original (uncompressed) size of the file. Is there an easy way to find out? ...

Convert gzipped data fetched by urllib2 to HTML

I currently use mechanize to read gzipped web page as below: br = mechanize.Browser() br.set_handle_gzip(True) response = br.open(url) data = response.read() I wonder how to decompress gzipped data fetched by urllib2 to HTML text? req = urllib2.Request(url) opener = urllib2.build_opener() response = opener.open(req) data = response.r...

Internet Explorer only part loading JavaScript/CSS

I'm having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I refresh, which suggested to me that it's trying to execute before it's finished loading or the connection was closed before it finished loadin...

How to process compressed data in Java

I have some data which takes up more than 50MB in an uncompressed file, but compresses down to less than half a MB using gzip. Most of this is numerical data. I'm trying to figure out how to process this data without having to uncompress it completely. For example, if this data contains a couple of strings and 5 or so numerical values...