Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 pondering the Monastery: (15)
As of 2014-12-18 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (65 votes), past polls