Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by Chmrr (Vicar)
on Jul 11, 2002 at 18:15 UTC ( [id://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'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found