Looks like you need to look for some settings on the browser. On Sat, Jun 14, 2008 at 5:24 AM, Octavian Rasnita <[EMAIL PROTECTED]> wrote:
> Hi, > > 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 > right. > > 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-Peer: xx.xxx.xxx.xxx:80 > Client-Response-Num: 1 > Content-Disposition: attachment;filename="REGS--2008-06-13.csv" > Set-Cookie: zzzz=6eb405c4774a704757d6455963ec7bfc10810eb9; domain= > www.tranzactiibursiere.ro; path=/ > X-Catalyst: 5.7014 > > > Octavian > > > --------------------------------------------------------------------- > 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: [EMAIL PROTECTED] > " from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >