You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/03/08 22:13:53 UTC
DO NOT REPLY [Bug 52860] New: Support Transfer-Encoding: gzip
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
Bug #: 52860
Summary: Support Transfer-Encoding: gzip
Product: Apache httpd-2
Version: 2.5-HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_deflate
AssignedTo: bugs@httpd.apache.org
ReportedBy: isoma@jellybaby.net
Classification: Unclassified
Created attachment 28443
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28443
patch against trunk r1298556
In a comment to Bug 39797, Roy Fielding calls for Apache httpd to implement
transfer-encoding.
I'm filing this bug to ask for that improvement. It's against mod_deflate
because that seems like the best place, but Roy Fielding actually suggested a
separate HTTP filter module.
I want to see at least one HTTP server that can talk gzip transfer-encoding. I
looked long and hard at most of the open source webservers, but only Apache
httpd had enough flexibility to make adding this feature feasible.
I'm attaching some code. This isn't the sort of patch you commit, but it
illustrates the kind of behaviour I'm describing. The patch adds a new filter
type GZIPTE which needs to run after the content is set but before chunked
transfer-encoding is applied. I've tested this using recent cURL as a client
and it behaves at the HTTP level just the way I would expect.
I'd very much welcome help from more experienced developers in making this into
a patch submission that belongs in trunk, with appropriate tests, documentation
and error codes. This is my first C language contribution to a public project
so please bear that in mind.
NB: if using cURL, remember to add the "TE: gzip" request header manually.
There's no command line shortcut for this yet.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52860] Support Transfer-Encoding: gzip
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
Tim B <is...@jellybaby.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52860] Support Transfer-Encoding: gzip
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
--- Comment #1 from Tim B <is...@jellybaby.net> 2012-03-08 21:15:31 UTC ---
Sorry, I meant Bug 39727
https://issues.apache.org/bugzilla/show_bug.cgi?id=39727#c31
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 52860] Support Transfer-Encoding: gzip
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
Takashi Sato <ta...@lans-tv.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |takashi@lans-tv.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 52860] Support Transfer-Encoding: gzip
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
--- Comment #5 from Jesús Cea <jc...@jcea.es> ---
I just hit this. I was trying to use "Range" with "Content-encoding: gzip", and
that is not working as expected. Investigating what could I do, I got this in
my Python code:
"""
# Interferencia con 'range'
# http://forum.nginx.org/read.php?2,209738,210053
del s.headers["Accept-Encoding"]
# Esto no hace nada en las versiones actuales de Apache,
# pero sí funcionará en las futuras:
# https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
# También se puede controlar a través de un CGI.
s.headers["TE"] = "gzip"
"""
So, yes, when Apache supports "TE: gzip", there is at least a client who is
going to use it :).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52860] Support Transfer-Encoding: gzip
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
Ian Brandt <ia...@ianbrandt.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ian@ianbrandt.com
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 52860] Support Transfer-Encoding: gzip
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
--- Comment #4 from Tim B <is...@jellybaby.net> ---
It's a chicken-and-egg issue. Few mainstream browsers support gzip
transfer-encoding.
Opera used to support gzip TE, but I'm not sure they're keeping it.
libcurl supports compressed transfer encodings since 2011:
http://curl.haxx.se/changes.html#7_21_6
…however, there's no webserver that will serve this. Once it's available in
httpd it should be safe to enable it by default (legacy clients don't request
gzip TE). Famous last words?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 52860] Support Transfer-Encoding: gzip
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
--- Comment #3 from Eric Covener <co...@gmail.com> ---
Any anecdotal info about client support? Or is it a chicken/egg problem?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 52860] Support Transfer-Encoding: gzip
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52860
Tim B <is...@jellybaby.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #28443|0 |1
is obsolete| |
--- Comment #2 from Tim B <is...@jellybaby.net> ---
Created attachment 29270
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29270&action=edit
patch against trunk r1376741
The only real update is to add a call to have_ssl_compression() in the right
place.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org