Re: Re: How to configure Apache 2 to compress xml files on serving?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Bo Berglund wrote:
On Fri, 13 Jun 2008 20:42:46 +0200, André Warnier <aw@xxxxxxxxxx>
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux