httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [users@httpd] Re: How to configure Apache 2 to compress xml files on serving?
Date Fri, 13 Jun 2008 22:33:35 GMT

Bo Berglund wrote:
> On Fri, 13 Jun 2008 20:42:46 +0200, André Warnier <aw@ice-sa.com>
> wrote:
> 
>> To find out exactly what happens on one server (where it does it right) 
>> and the other (where it doesn't), you should have a look at the HTTP 
>> headers sent in the server response, in one case and the other.
>>
>> I'll give you what I would use, because I am a perl user, and there is a 
>> utility in perl that allows to do just that.  But I am sure that there 
>> are many other tools available to do the same thing.
>>
>> 1) install perl if you don't have it yet.
>> 2) at the command-line level, enter
>> lwp-request -m GET -Sed "http://server1/.../abc.xml.gz"
>>
>> This will show you the HTTP headers, as sent by the server1.
>> The switches -Sed will prevent the actual content to be shown.
>>
>> 3) enter the same for server2
>> lwp-request -m GET -Sed "http://server2/.../abc.xml.gz"
>>
>> There should be a difference in the HTTP headers.
>> The difference will tell you (or us) where to start looking.
>>
> 
> I don't have PERL and I am working on Windows XP so there is no Linux
> style command availabvle either...

- Go to http://www.activestate.com
- download a perl msi for Windows and install it. Click ok on - 
everything, it does not do anything nasty.
- open a Windows Command window
- and then type what I wrote above
- when you're done, if you want, use the Control Panel to get rid of Perl
The above should take you all of 15 minutes.

There are certainly other Windows programs available to do the same 
(view HTTP headers), I just don't know them.  I believe even Firefox 
should have a gimmick somewhere to let you see the HTTP headers received.

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