Re: file targets
Lothar Scholz <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Organization | Scriptolutions |
| Message-ID | <[email protected]> |
Hello Daniel, Tuesday, February 3, 2004, 8:32:41 PM, you wrote: DB> Hi, DB> On several forums, I have seen links of the form DB> http://site/download.php?id=230923 DB> and when the link is followed, a file download follows, and the filename DB> will be something like reasonable-name.tar.gz or something. DB> Does anyone know how this is done? or if it can be done with ruby? DB> db Use the "Content-Type" and "Content-Disposition" header for this. Look at the MIME RFC (or to one of your message in your mail reader) for exact syntax. -- Best regards, Lothar mailto:[email protected]