edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] pdf auto download
Date: Tue, 7 Apr 2015 18:43:11 +0100	[thread overview]
Message-ID: <20150407174207.GA21727@toaster.adamthompson.me.uk> (raw)
In-Reply-To: <20150228071807.eklhad@comcast.net>

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

On Sat, Mar 28, 2015 at 07:18:07AM -0400, Karl Dahlke wrote:
> Chuck asks:
> > how would a user be able to retrieve and save the original pdf?
> 
> You can save the original of any file you access on the web,
> be it pdf or html or whatever, by typing ub to unbrowse the file,
> thus reproducing the original, then w to write.
> Or w/ to write to the internet filename, if that is the filename you want.
> You wouldn't lose any capabilities; probably this is how you did it
> in edbrowse 3.5.2 and earlier.

This makes me wonder whether we should make the content type handling (as in the mime type reported by the http header, not based on suffix)
configurable rather than hard-coding defaults and then using the download
prompt for the rest?
I know we have the mime mechanism at the moment,
but it needs a suffix (as far as I know), and it'd be nice to not rely on that,
particularly for websites which don't use standard suffixes (i.e.
some php scripts I've seen generate pdf output but have the .php suffix in the URL).
If we changed the mechanism to be based on http headers rather than suffix,
then we could also add a download or view option
so that you could configure pdfs to download rather than view if you wanted to.

Cheers,
Adam.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2015-04-07 17:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-28 11:18 Karl Dahlke
2015-04-07 17:43 ` Adam Thompson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-04-10 11:48 Karl Dahlke
2015-04-10 13:58 ` Adam Thompson
2015-04-07 18:23 Karl Dahlke
2015-04-10 11:22 ` Adam Thompson
2015-03-28  3:42 Karl Dahlke
2015-03-28 10:03 ` Chuck Hallenbeck
2015-03-28 12:13 ` Chris Brannon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150407174207.GA21727@toaster.adamthompson.me.uk \
    --to=arthompson1990@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=eklhad@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).