httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Octavian Rasnita" <>
Subject [users@httpd] Downloading a CSV file
Date Sat, 14 Jun 2008 12:24:51 GMT

I've made a program that creates a .csv file and offer it for downloading.

If a user uses Internet Explorer 6 to download the file and it chooses to 
right-click then "Save as..." from the context menu, the file is downloaded 

But if the user just clicks or hits enter on the link for downloading that 
file, the user is asked what he wants to do, to save or open the file, and 
if he choses that he wants to save it, that window remains open and it 
doesn't ask for the name of the file.

I've used lwp-request (from ActivePerl) to see which are the HTTP headers 
received. Please tell me what should I change, add or remove in order to be 
able to download that file by just clicking on the link.

Thank you.

The headers are:

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, 
pre-check=0, max-age=0
Connection: close
Date: Sat, 14 Jun 2008 12:09:38 GMT
Pragma: no-cache
Server: Apache/2.2.8 (Fedora)
Content-Length: 4358
Content-Type: text/csv
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Client-Date: Sat, 14 Jun 2008 12:13:49 GMT
Client-Response-Num: 1
Content-Disposition: attachment;filename="REGS--2008-06-13.csv"
Set-Cookie: zzzz=6eb405c4774a704757d6455963ec7bfc10810eb9;; path=/
X-Catalyst: 5.7014


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