Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How do I force a certain filename in the browser?

by Chmrr (Vicar)
on Jul 11, 2002 at 18:15 UTC ( #181096=note: print w/ replies, xml ) Need Help??


in reply to How do I force a certain filename in the browser?

Use the Content-disposition header, like so:

print "Content-type: application/msword\n"; print "Content-disposition: attachment; filename=mydoc.doc\n\n"

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'


Comment on Re: How do I force a certain filename in the browser?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2014-10-23 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls