Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Article Poll

Poll I found this article to be
Very Helpful
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:0

mod_gzip screws up Slash's answers on POST request

posted by Krow on 11:14 AM August 17th, 2001   Printer-friendly   Email story
XTaran writes "

Slash 2.0.0 seems not work correctly together with mod_gzip: Every time, I press some button (on a Slash page like,,, etc.) which initiates a POST request, I get as result a page, which looks like no POST body has been transmitted or evaluated (e.g. always returns me the list of postings) .

I can reproduce this behaviour at least with Netscape 4.77/Solaris 2.7, Opera 5.0b1/Solaris 2.7 and Konqueror 2.11/Linux 2.2.18pre21, so I'm sure, it's no browser bug. Also the logged requests are correct. Just the answer isn't.

I can't say, what exactly goes wrong (or if it's a Slash or mod_gzip bug), but it seems, as if Slash and mod_gzip (which always comes as the very last module) seem to have a little discussion about who has the last word on my server...

If I switch off mod_gzip, everything with Slash works fine.

P.S.: Solaris 2.7, Sun Ultra Sparc 10, Apache/1.3.20 (Unix) mod_gzip/ mod_perl/1.26 mod_macro/1.1.1 mod_autoindex/color, default Slash config, only paths have been changed..."
It is mod_gzip.

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login
Loading... please wait.
  • Add the following lines to your section in your Slash site's config:

            mod_gzip_item_exclude reqheader Content-Type:multipart/form-data
            mod_gzip_item_exclude reqheader Content-Type:application/x-www-form-urlencoded

    I had that problem and this fixes it. That's what I'm doing for TravTalk and other sites I'm hosting [].

    It won't compress POSTs, but they are a small percentage of requests, so you're still getting a huge advantage. mod_gzip compresses Slash's main HTML home page from about 50k to about 6k!

    Yoder Internet Development []: Honest and Affordable Web Solutions
  • that part got stripped out!

    Yoder Internet Development []: Honest and Affordable Web Solutions
  • If I had any mod points, I would mod you up =P
    mod_gzip rules, it is reducing all pages by about 80%!

    My question is: Does anyone know why mod_gzip does not work for Slash's POSTs? It works fine on POSTs for the rest of my site. I suspect it is due to Slash's PerlHandlers. Anyone know?