Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How do i force the user to download my content?

by BUU (Prior)
on Apr 15, 2002 at 13:16 UTC ( [id://159165]=note: print w/replies, xml ) Need Help??


in reply to How do i force the user to download my content?

You simply return a "Content-type: application/octet-stream\n\n" as opposed to the normal "Content-type:text/html\n\n", and this opens up a "Save As" Dialog box, and saves stdout to their computer.
  • Comment on Re: How do i force the user to download my content?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://159165]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-24 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found