How to specify the name of a downloaded file (IdHttpServer)

Giganews Newsgroups
Subject: How to specify the name of a downloaded file (IdHttpServer)
Posted by:  Thomas Bergerot (nospam@nospam.fr)
Date: Sun, 22 Jul 2007

Hi !

Using a TIdHttpServer, i use OnCommandGet(), and send a file using
ServeFile().

The problem is the requested url is http://localhost/pimpmyfile, and the
  file is automatically named "pimpmyfile" by firefox.

How can i tell firefox the new name of my dowloaded file ?

I tried AResponseInfo.Location, without success.

Any clue ?

Regards,

Tom

Replies