Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 imbibing at the Monastery: (4)
As of 2014-09-20 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls