Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by little (Curate)
on Jul 15, 2002 at 13:05 UTC ( [id://181759]=note: print w/replies, xml ) Need Help??


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

A browser requests a document, and in return receives the answer from the server. The Browser remits a mime-type-list of which types he is able to view or in any other way to process. If a server would send a browser a mime-type declaration for a document to which the browser has no application assigned to handle it, (yes this is badly faking and not conformant to any standard as it only works in breaking the standard) then the browser would offer the download to the user. eg. you send something like "Content-Type: application/cherry-pie" no browser would know what to do with a file of such format, hence offering to save it. But DON'T do that if you respect your visitors :-) They would probably dislike the need of renaming files and fear that you'd just 'forced' them into downloading malicious code. :-)
  • 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://181759]
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-19 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found