[lokisetup] makeself and browser downloads

Carl Parrish cparrish at carlparrish.com
Sat Apr 12 17:34:14 EDT 2003

For Moz based browser just tell them to hold down the shift key when
they click on the link and it will save it instead of trying to display

On Sat, 2003-04-12 at 13:35, Chunky Kibbles wrote:
> On Sat, Apr 12, 2003 at 11:42:59AM -0700, John Quigley wrote:
> > Many browsers treat makeself archives as text, and display them in the browser 
> > instead of allowing the user to save the file.  I've tried various different 
> > extensions (.sh.run, .sh.bin), but no luck fixing it.  
> > 
> > The makeself readme says to add a content type to the web server, but I don't 
> > have access to the server in question.  Is there other way to fix this?
> If you don't have access to the web server in question, and it's using
> magic to determine that mime type, you're screwed. Couple options:
> 1) Get over it. It's only a problem for people using broken browsers.
> If you use lynx, wget, or friends, then the download works fine.
> If you're using IE, NS or Moz, they're being helpful. d'oh.
> 2) If you can use cgi, use code like the following:
> #!/bin/sh
> echo "Content-type: application/octet-stream"
> echo "Content-disposition: attatchment; filename=foo.run"
> echo ""
> echo ""
> exec cat foo.run
> Hope that helps,
> Gary (-;
Carl Parrish (cparrish at carlparrish.com)
Registered Linux User #295761 http://counter.li.org

More information about the Lokisetup mailing list