Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Changing the content type

by friedo (Prior)
on Jul 15, 2008 at 19:34 UTC ( #697786=note: print w/replies, xml ) Need Help??


in reply to Changing the content type

To set the filename of a downloaded file, add a content-disposition header with a filename attribute. For example
content-disposition: attachment; filename=foo.kml

Replies are listed 'Best First'.
Re^2: Changing the content type
by carterniall (Novice) on Jul 16, 2008 at 11:43 UTC
    Many thanks, adding the content-disposition worked a charm

    I had a bt of a thick moment as you have to remove the

    print "Content-type: application/vnd.google-earth.kml+xml\n\n";
    line for the content disposition to work.

    Many thanks monks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://697786]
help
Chatterbox?
stevieb is writing a little CUFP on how to control analog pins on an arduino from a Linux machine via I2C in light of Perl, JavaScript and Strandbeests. It also is a good real-world use-case to test my I2C dist.
[stevieb]: I just don't feel like going hardcore on anything today, so I thought I'd *use* my software instead of just write it
[beech]: let the surprises begin :D

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-07-21 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (336 votes). Check out past polls.