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

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

 



On Fri, 13 Jun 2008 14:29:16 -0700, Dragon <dragon@xxxxxxxxxxxxxxxxxx>
wrote:

>> >There should be a difference in the HTTP headers.
>> >The difference will tell you (or us) where to start looking.
>> >

>You are using Firefox, yes? (I seem to recall that...)
>
>If so, go get the LiveHeaders plug-in for it. 
>That will help you see what headers are being sent by both sites.
>

Thanks, that was a valuable help!
I installed it and got the headers as follows:

>From the original server:

http://xmltv.tvsajten.com/xmltv/svt1.svt.se_2008-06-23.xml.gz

GET /xmltv/svt1.svt.se_2008-06-23.xml.gz HTTP/1.1
Host: xmltv.tvsajten.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://polaris/xmltv/GetXMLTVFiles.html
If-Modified-Since: Mon, 09 Jun 2008 04:03:42 GMT
If-None-Match: "1395-e5aba380"

HTTP/1.x 304 Not Modified
Date: Fri, 13 Jun 2008 21:57:14 GMT
Server: Apache/2.0.53 (Fedora)
Connection: Keep-Alive
Keep-Alive: timeout=15, max=100
Etag: "1395-e5aba380"
----------------------------------------------------------

>From my Apache server, which does not trigger the expansion:

http://polaris/xmltv/svt1.svt.se_2008-06-19.xml.gz

GET /xmltv/svt1.svt.se_2008-06-19.xml.gz HTTP/1.1
Host: polaris
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://polaris/xmltv/index.html

HTTP/1.x 200 OK
Date: Fri, 13 Jun 2008 22:00:22 GMT
Server: Apache/2.0.54 (Win32) PHP/4.4.7
Last-Modified: Thu, 12 Jun 2008 22:20:20 GMT
Etag: "55084-14fc-91160693"
Accept-Ranges: bytes
Content-Length: 5372
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/x-gzip
Content-Encoding: gzip
----------------------------------------------------------

I see differences, but:
1) I don't know which are relevant for the problem of decoding the gz
files on GET.

2) I don't know how to change my Apache to provide the missing
items...

Any ideas based on this info??
What are my options on adjusting Apache to mimick the way the real
server works?

Bo Berglund


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