Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
[erix]: good no-nonsense american approach to these soft european practices: "Upon entering the Almshouses in Connecticut, patients were whipped up to 10 times"
Discipulus should have..
[erix]: the almshouse generally seems to have become an anglosaxon relic :P
[Discipulus]: just to be sure was not for a free lunch.. sbaaam!
[Discipulus]: here now we call them Cities
[erix]: 'cities'? in italian? are they funded by charity?
[LanX]: The New Testament was first "published" in Greek, that's why

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-11-23 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (338 votes). Check out past polls.

    Notices?