Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Re: saving pages all= index.pl.html

by xtype (Deacon)
on Feb 15, 2003 at 18:07 UTC ( [id://235591]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: saving pages all= index.pl.html
in thread saving pages all= index.pl.html

I have been using:
print $q->header(-type=>$type, -Content_Disposition=>"filename=$node-> +{title}"); print $$data;
...with a script that grabs files (mostly photographs) from a database and sends them to the browser. After determining the mime.type and verifying the data, of course.
I have never had IE not respect the filename I sent it.
This is running from Apache/1.3.26 (Unix).
-xtype

P.S. Oh, and I agree with this post, except that I would like an option between the node ID or the node Title (set in user prefs). Maybe it would default to node Title for the Anons. pmdev...get to work.

update: Also, I would like to see it sent with every request. I see no need for a "save" link.

Log In?
Username:
Password:

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

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

    No recent polls found