Все вопросы: [gzip]

167 вопросов

похожие теги:
0
голосов
1ответов
415 просмотров

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)?

91
голосов
4ответов
36891 просмотров

Deflate compression browser compatibility and advantages over GZIP

UPDATE Feb 10 2012: zOompf has completed some very thorough research on this very topic here. It trumps any findings below. 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: " 'Gz...

109
голосов
5ответов
58039 просмотров

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 he...

2
голосов
1ответов
2604 просмотров

How to download and unzip a sitemap gz file in c#?

I need to download and unzip a sitemap.xml file that is compressed (maybe tar + gzip?) into a sitemap.xml.gz From Windows I use 7zip. But note that the gz contains a directory with the same name of the zipped file (maybe due to tar + gx) How can I do in c#? Thanks

2
голосов
1ответов
1013 просмотров

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, everythin...

1
голосов
4ответов
5735 просмотров

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

1
голосов
2ответов
648 просмотров

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 ...

0
голосов
1ответов
255 просмотров

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?

2
голосов
4ответов
1893 просмотров

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 HttoCompr...

31
голосов
3ответов
41571 просмотров

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: coe...

5
голосов
5ответов
1220 просмотров

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 th...

5
голосов
1ответов
3087 просмотров

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

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 ...

1
голосов
4ответов
166 просмотров

With GZIP, Can I write 'Sloppy' CSS (and other type of code) code?

The drumbeat of writing terse CSS code has been beaten into my head for years. For example: Do this: .foo,.bar{ color:#f00; } Not this: .foo{ color:#f00; } .bar{ color:#f00; } With GZIP compression isn't it irrelevant how I write the above CSS? Since GZIP ...

4
голосов
2ответов
1673 просмотров

Is there a way to do pre-compression with on-the-fly-uncompression in nginx?

It's easy to use the pre-compression module to look for a pre-compressed .gz version of a page and serve it to browsers that accept gzip to avoid the overhead of on-the-fly compression, but what I would like to do is eliminate the uncompressed version from disk and store only the compressed versi...

4
голосов
4ответов
3110 просмотров

Python gzip folder structure when zipping single file

I'm using Python's gzip module to gzip content for a single file, using code similar to the example in the docs: import gzip content = "Lots of content here" f = gzip.open('/home/joe/file.txt.gz', 'wb') f.write(content) f.close() If I open the gz file in 7-zip, I see a folder hierarchy matchin...

1
голосов
1ответов
450 просмотров

Dotnetnuke and gzip

I am currently running Dotnetnuke version 4.9.4 and would like to enable gzip compression. My concern is that IE6 prior to SP2 has known issues with gzipped content. Does the Dotnetnuke framework handle the gzip issues with IE6 or will I need to apply a fix outside of the framework?

10
голосов
1ответов
6989 просмотров

Known issues with gzip and IE6

I read that some versions of IE6 have known issues with gzip compression, but I have found little explanation as to what these issues are. What are the known issues with gzip compression and IE6?

0
голосов
1ответов
317 просмотров

DLLHook - GZip decompression of a string

I am injecting a dll into firefox (browser) and hooking WSARecv. The problem is, that the data-buffer is Gzip-compressed. I already tried hooking the send() function and removing the "Accept-Encoding: gzip,deflate", but many webservers won't understand this. So I tried to stick with decompressin...

2
голосов
2ответов
3237 просмотров

tar (on Windows) a list of files in c#

I then to tar and then gzip a list of files in C#. I need some help with how to set the arguments to tar. Say I have tar.exe in a folder c:\tar\tar.exe and a method like the following: private void RunTar(string outputFileName, List<string> fileNamePaths) { using (Process...

2
голосов
1ответов
627 просмотров

Prevent server from encoding in gzip when downloading with WebClient

I have a download manager of sorts that uses WebClient.DownloadFileAsync. Webclient doesn't seem to handle gzip encoding and some servers are insisting on using it. Since almost all of the files this will be downloading are already compressed, it would be nice just to be able to force it to stop....

4
голосов
4ответов
7399 просмотров

Creating and serving zipped files with php

I'm trying to use the following code to create a zip file from a directory and serve it to the user via an http download: // write the file file_put_contents($path . "/index.html", $output); // zip up the contents chdir($path); exec("zip -r {$course->name} ./"); $filename = "{$course->n...

5
голосов
3ответов
1247 просмотров

GZIPInputStream implementation for J2ME

Are there any GZIPInputStream implementation for J2ME available. I would prefer an Apache Style License

0
голосов
3ответов
674 просмотров

String table encoding vs. gzip compression

In my application, I need to store and transmit data that contains many repeating string values (think entity names in an XML document). I have two proposed solutions: A) create a string table to be stored along the document, and then use index references (using multi-byte encoding) in the do...

1
голосов
2ответов
592 просмотров

Will all files be compressed by using ob_start("ob_gzhandler"); at line 1 with PHP?

<?php ob_start("ob_gzhandler"); ?> <script type="text/javascript" src="Util.js"></script> <script type="text/javascript" src="connection.js"></script> .... <?php ob_end_flush(); ?> Will the files included by or also be compressed?

34
голосов
2ответов
21524 просмотров

How does the GZip algorithm work?

How does the GZip file compression algorithm work? If anyone has any documentation on this, I'd like to read it.

10
голосов
4ответов
4783 просмотров

Compressing with Java Decompressing with PHP

I have a situation where a servlet is providing compressed data to a PHP script. I compress the data on the Java side no problem, but PHP seems unable to decompress. Here is the relevent code snippets Java Side: OutputStream o=response.getOutputStream(); GZIPOutputStream gz=new GZIPOutput...

1
голосов
1ответов
890 просмотров

iPhone: Reading a gzipped stream

Are they any classes or libraries to read a gzipped stream from a server? For example, Java has the GZIPInputStream and GZIPOutputStream classes to read from a gzipped stream. Does iPhone SDK have such libraries or are there any external libraries that we can use?

1
голосов
2ответов
3827 просмотров

Why Apache doesn't gzip css or js files which have parameters?

Some CSS & JS files are not compressed by apache with mod_deflate enabled. This files looks like this "[domain.name]/aggregator.css?..." or "[domain.name]/misc/jquery.js?..." in YSlow. The other CSS & JS without the "?" gets compressed. Kindly explain me how do I make apache compress this...

7
голосов
1ответов
13027 просмотров

WCF REST Compression

I have a REST service that returns a large chunk of XML, about 150k worth. e.g. http://xmlservice.com/services/RestService.svc/GetLargeXML Therefore I want to compress the response from the server, as GZIP should reduce this to something much smaller. Having searched everywhere I cannot for...

1
голосов
2ответов
111 просмотров

Does using gzip encoding make sense for communications within same server?

I have an xml feed supplied by one system which is used by another system and both of them (at the moment at least) are located on the same physical server. In this case would using gzip to encode (large) xml responses slow things down or speed it up, or maybe wont make any difference.