Don't ask to ask, just ask | |
PerlMonks |
Re: How do i force the user to download my content?by Joost (Canon) |
on Apr 22, 2002 at 12:43 UTC ( [id://161040]=note: print w/replies, xml ) | Need Help?? |
As per RFC 2616 (HTTP/1.1), you might try setting the following headers:
Note: You also need to set content-type to application/octet-stream if you want the browser to "force" a "Save file as..." popup instead of it trying to display the data first. Joost.
In Section
Seekers of Perl Wisdom
|
|