Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Problems? Is your data what you think it is?
 
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-04-20 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls