Re: Force a file download for link

2005-08-30 Thread Lewis Kirk
At 1:41 PM -0700 8/30/05, Denzil Kruse wrote: >Hi, > >I want my users to download a csv file. When they >left click on the link, it brings the file up within >the browswer. They can of course do a right click and >"Save Target As" depending on the browser. > >But I don't want to fuss with instruc

Re: Force a file download for link

2005-08-30 Thread Denzil Kruse
--- Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: > > In one my libraries I use, > > my %header_options = ( -Content_Type => > 'application/octet-stream', >-Content_Length => > $content_length, > ); > > if (defined $self->{'filename'} and > $self-

RE: Force a file download for link

2005-08-30 Thread Paul Archer
You might want to look at how sourceforge.net handles things when you go to download. I don't know the mechanism, but it's the behavior you want. Paul 3:23pm, Denzil Kruse wrote: --- Bob Showalter <[EMAIL PROTECTED]> wrote: use CGI qw(:standard); open FILE, ...blah blah... pri

Re: Force a file download for link

2005-08-30 Thread Wiggins d'Anconia
Denzil Kruse wrote: > > --- Bob Showalter <[EMAIL PROTECTED]> > wrote: > > > >> use CGI qw(:standard); >> >> open FILE, ...blah blah... >> print header('application/octet-stream'); >> print while ; >> > > > Thanks for the help Bob! Is there another way besides > the content-dispositio

RE: Force a file download for link

2005-08-30 Thread Denzil Kruse
--- Bob Showalter <[EMAIL PROTECTED]> wrote: > >use CGI qw(:standard); > >open FILE, ...blah blah... >print header('application/octet-stream'); >print while ; > Thanks for the help Bob! Is there another way besides the content-disposition to specify an attachment or filename

RE: Force a file download for link

2005-08-30 Thread Bob Showalter
Denzil Kruse wrote: > Hi, > > I want my users to download a csv file. When they > left click on the link, it brings the file up within > the browswer. They can of course do a right click and > "Save Target As" depending on the browser. > > But I don't want to fuss with instructions and > confus

Force a file download for link

2005-08-30 Thread Denzil Kruse
Hi, I want my users to download a csv file. When they left click on the link, it brings the file up within the browswer. They can of course do a right click and "Save Target As" depending on the browser. But I don't want to fuss with instructions and confused users. I would just like the same

Re: changing action with appended key/value pairs in a POST

2005-08-30 Thread Todd W
"Scott R. Godin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a multi-stage cgi I'm currently working on, and as I progress thru the > stages (the form uses POST not GET for reasons of data-size) I was hoping to be > able to simply add ?step=confirm or ?step=finish to the f