From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 8AC4A7AAAD for ; Fri, 10 Apr 2015 04:23:44 -0700 (PDT) Received: by wgsk9 with SMTP id k9so14544237wgs.3 for ; Fri, 10 Apr 2015 04:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=CoWemMRCgk6J/XADQRHLYU4FCJHKdPrjRgmS90cjDvs=; b=D6f3FLejFEenxYH79JI/AZ4DHMsKHsLs/9D4Ppyyd/4apHJcUAn/nSnnrEb/eSsJYb aOuHQ7D4nvHV1aF5b/LbTZCXPplOFm7xkR1gTIzZncMrsNBmvChgW7ijBK830eakmSbE fyB7f0ejLQTMEmwQtjIYOTiG6oI9+aA8RRSjYs6TAsnJCtU1+dVvl8qzDCO4hamfByce awHJwOxsC95sBNfMen4M3ty7lNd/c3qgUsddeWTUw0FdbRfa3WHmhrIsTrPUr2yeFXUH WqlOCSIGtuAiL1niP4XM0Jne34ocgpFTt0GKDf3M4ZY4fE+0jUuk0jEh5EfZ62PTpDvt dhfg== X-Received: by 10.180.77.199 with SMTP id u7mr4111875wiw.42.1428664924969; Fri, 10 Apr 2015 04:22:04 -0700 (PDT) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id cf12sm2506584wjb.10.2015.04.10.04.22.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 04:22:04 -0700 (PDT) Date: Fri, 10 Apr 2015 12:22:01 +0100 From: Adam Thompson To: Karl Dahlke Message-ID: <20150410112201.GB21727@toaster.adamthompson.me.uk> References: <20150307142353.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="P+33d92oIH25kiaB" Content-Disposition: inline In-Reply-To: <20150307142353.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] pdf auto download X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2015 11:23:45 -0000 --P+33d92oIH25kiaB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 07, 2015 at 02:23:53PM -0400, Karl Dahlke wrote: > > If we changed the mechanism to be based on http headers rather than suf= fix, >=20 > The determination of whether to download an http file to disk, > as opposed to in memory and browsing, is currently based on content-type > as per the http headers. > In other words, it already works the way you want. > text/ or application/pdf is rendered, all else is downloaded. > Of course you can override a download by typing a space, and keep it in m= emory. > I do this sometimes for mp3 or wav off a website, > if I just want to hear the sound and not save it somewhere. >=20 > This is not configurable, as you suggested. > Perhaps something like >=20 > downtype =3D application/pdf >=20 > In the config file. > I'm not sure what the defaults would be, and how to change them in .ebrc. > It could be done, but I wonder if it would confuse > more than it helps. > I'm not sure the average user understands the various content types > in http headers. I'd just alter the existing mime mechanism to support a contenttype keyword which would override the suffix keyword if specified. I've never been a fan of specifying a mime type based on file extension, and I find the existing mechanism of mapping arbitrary file extensions to arbitrary mime types a bit... odd... anyway. What I'm thinking is to have a mechanism where we check for a mime handler for a particular type and adjust the prompt accordingly. This would move us closer to the plugin mechanism supported by most other modern browsers. In addition, given the way the web is heading, this change will become increasingly important, particularly as scripts are increasingly generating non-html output. > Remember that ftp files are always > downloaded to disk, since we have no indication of their type, > the one exception to this being an ftp directory, which I load and browse, > assuming you will select a file or subdirectory from this directory etc. This seems sensible to me. Cheers, Adam. --P+33d92oIH25kiaB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVJ7JZAAoJELZ22lNQBzHO4BUIALvrUMgU5VFyEP63QvYhsggE I9Qvw8yFA0qX0T5cdgdnGel2xFjmggOlo+Izc+gTlvNGlNEDDsRYT7FUUTciuL5S T7k1a7xuZ2RcGjfdWetX30FaMP5bK8vXKWfsQCw+0J6f/Qpuj4Nl/e/9A0HN1kot gpWCOsX1lo2fSkipniE0Jh25fOcJELrNI/8RtdT9HbkyUV1nuP5Z3quvGeg2X3qp uZPsGEahNkP6H6vL6a3zCwU+kINUx0jGY5+hdrsnRslWOSpLEHXlZmhXYtvdap78 lmPgDtGAZKFHwIgtLhg8rDvJiWf8W1iIPPTw8TiAwAj9yl6eRVBiS4gnzg5gjLE= =ro9L -----END PGP SIGNATURE----- --P+33d92oIH25kiaB--