Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uncompressing Files on the Fly

Status
Not open for further replies.

plunkett

Technical User
Jun 10, 2004
57
US
Hi All.

I have text files that are gziped, so they have the format of whatever.txt.gz on the server. My application links to them as whatever.txt.

What I want, is for people to click on it and receive just the plain text (i.e. i want the browser to uncompress it on the fly) but whatever I try it keeps asking me to download the zipped file when I click on the link through my browser.

I have this in my httpd.conf file..


AddEncoding x-gzip gz tgz



... and I even have an installation of apache on another machine that gives me the behavior that I want! I've examined both httpd.conf files, but I can't find my missing link. Anyone have any suggestions?

-Hal Plunkett
 
Same Operating System? Same Apache Version? Files appear in same context - virtual versus named server? Using mod-rewrite in one and not the other?

D.E.R. Management - IT Project Management Consulting
 
Same Operating System? Same Apache Version? Files appear in same context - virtual versus named server? Using mod-rewrite in one and not the other?

-- Both Solaris 9, slightly different Apache Versions. I believe I compiled with the same options. Same modules are being loaded in both.

Why don't you store them as plain text?

-- The Client can get the files faster and it reduces bandwidth usage, or maybe I didn't understand your question. Plain text compression ratios are very good.

I actually have a different problem now. Some of the files are unzipped correctly (on the fly) and some are not, and I can't find any difference between the two. Every hour it gets better though, so maybe it's some strange cacheing that's been going on...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top