From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net [69.252.207.36]) by hurricane.the-brannons.com (Postfix) with ESMTPS id D006E7A944 for ; Tue, 7 Apr 2015 11:25:46 -0700 (PDT) Received: from resomta-ch2-12v.sys.comcast.net ([69.252.207.108]) by resqmta-ch2-04v.sys.comcast.net with comcast id D6NV1q0052LrikM016Pvg5; Tue, 07 Apr 2015 18:23:55 +0000 Received: from eklhad ([IPv6:2601:4:5380:4ee:21e:4fff:fec2:a0f1]) by resomta-ch2-12v.sys.comcast.net with comcast id D6Pu1q0025LMg21016PunC; Tue, 07 Apr 2015 18:23:54 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.5.3+ Date: Tue, 07 Apr 2015 14:23:53 -0400 Message-ID: <20150307142353.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1428431035; bh=6vJ6ij/otVbeQrU0x67TCv3UxOOEpLM2OE3X84IZgjo=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=eXG1dwlVetYmIMn8zZzUZE341OnFEPsfTjyQEewCwy2wUFx8pID3u5Q3oJlVuM1he GT9oYuq2DXXxye4ltkJzs7sOB2CGL23//9O4Eqeo+wFSHEx7VPE9v/gQesCuftVOHh rIUye9i2E60fwpvcgEAGuIUogtAP1F/t4wts00WBK/gfbCf/jJrAelAmBlIkKPmPe0 OYfdmjmotHRoO07f0ZFhFn2ziy3O9H9cwqngQO4FeNE3eO9hWsu+0ZJwuXU6QxOCUt VLRPK6G3VN5bFv3++Zz5mBOhptTqHCplxrnH97DKebazAva8qxRsSFJQYWJZlsKZVS dAmDddcb8dN+Q== Subject: [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: Tue, 07 Apr 2015 18:25:47 -0000 > If we changed the mechanism to be based on http headers rather than suffix, 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 memory. I do this sometimes for mp3 or wav off a website, if I just want to hear the sound and not save it somewhere. This is not configurable, as you suggested. Perhaps something like downtype = application/pdf 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. 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. Karl Dahlke