httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arvid Piehl Lauritsen Böttiger <botti...@gmail.com>
Subject Re: [users@httpd] ext_filter module only works with wget/curl - not in browsers
Date Wed, 14 Sep 2011 15:14:06 GMT
That sounds very much like the source of my problem. Didn't think that
far. Thank you very much.

On Wed, Sep 14, 2011 at 3:35 PM, Björn Zettergren
<bjorn.zettergren@basefarm.se> wrote:
> On 09/14/2011 02:58 PM, Arvid Piehl Lauritsen Böttiger wrote:
>>
>> Hello
>>
>> I think I have a very strange problem. I'm trying to use ext_filter to
>> rewrite some contenton the fly from apache.
>
> ...
>>
>> I am quite lost here because I have no idea what is going on.
>
> ...
>
>
> Firefox and other browsers will (most likely) send an "Accept-Encoding:
> gzip,deflate"-header, which causes your data to be compressed before server
> sends it to the client.
>
> Regular GET requests will show this difference, by appending the proper
> headers as such:
> $ GET http://sn.im/v3luh | grep -Ei "201. P"
>    <p>2012 PSI</p>
>
> $ GET -H "Accept-Encoding: gzip,deflate" http://sn.im/v3luh | zgrep -Ei
> "201. P"
>    <p>2011 PSI</p>
>
>
> Your page running the "It Works" example doesn't deflate its output (gives
> no "Content-Encoding: gzip" in response-headers).
>
> Could it be that your apache is running mod_deflate before ext_filters?
> That would cause "sed" to fail its substitutions since it would be working
> against compressed data, not clear text.
>
> /Björn
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message