httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Simon <>
Subject [users@httpd] Header set Content-type
Date Fri, 08 Jun 2007 20:38:02 GMT
Hi. I'm trying to set Content-type and content-disposition using mod_headers but it's only
partly working:

    RewriteRule sesp-apprv.csv$ - [E=SESP_CONT_DISP:Yes]

    Header always set Content-Type "application/ms-excel" env=SESP_CONT_DISP
    Header always set content-disposition "attachment; filename=sesp-apprv.csv"

The content-disposition is being set but not Content-Type. If I substitute the Content-Type
line with something like:

    Header always set BLAH "application/ms-excel" env=SESP_CONT_DISP

I'll get a BLAH field set in the response headers.

Is it impossible to set the Content-Type? Any suggestions?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message