From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] mailx, plugin commands, mime, new sourcefile
Date: Sun, 12 Apr 2015 16:46:08 -0400 [thread overview]
Message-ID: <20150312164608.eklhad@comcast.net> (raw)
In-Reply-To: <20150412193642.GH9150@toaster.adamthompson.me.uk>
> Are we using a head request for http to determine this?
I never issue a head request, primarily because I don't need to 95%
of the time, and I never know when that other 5% is coming.
You pointed out, rightly so, that foobar.php can crank out
anything, usually it's just another web page,
wherein head would be a complete waste of time,
and maybe quite a bit of time if that php program did a lot of computatio
to get you to that next web page.
Maybe it even ordered something for you through amazon,
and issuing the command twice would order the item twice.
I don't know but messing with head commands scares me.
> I ask as in some situations I can think of,
> re-invoking the player with the URL once downloading has began may break things
Yeah I get that. That could happen.
Not sure what to say about that.
The edbrowse abort happens during the headers, not after,
and that's a worst case,
assuming it isn't redirected earlier by protocol,
but if/when this happens
most likely it would just look like a reconnect and not cause any trouble.
It's even a connect from another program, another local port,
so probably wouldn't be a problem.
> I'd also be in favour of some sort of protocol set up
> which would hand off URLs to external programs,
> for example rtsp may be handed to mplayer for playing.
This is already done and has worked for quite some time.
Look at this mime descriptor from my config file.
It's also in the sample config file in the doc directory.
mime {
# the < forces it to be a stream, hence the url is passed to the program directly
type = <audio/x-pn-realaudio
desc = streaming audio
suffix = rm,ra,ram,pls
content = audio/x-scpls
protocol = rtsp,pnm,sdp
program = /usr/bin/mplayer -quiet
}
The content = attribute is supported with the latest version,
that wasn't there before,
but it's there now and mostly works, and the other stuff worked before
and would pass the url along based on protocol or suffix.
This reminds me I need to reinstall mplayer, it's not on my new system.
Guess I don't listen to real audio very often.
I never got nasa real audio to run through mplayer,
and that bums me out cause it's not on cable any more and I
don't have any way to listen to space launches or coverage etc.
But I digress.
> I'd also like a pga option for plugins ask
Yes that's a good thought.
We should think about this one for a bit.
I added mime.c, a new sourcefile, because well it just makes sense.
I couldn't make any progress with little chunks of mime and plugin code
scattered all through the files.
So I gathered them together in mime.c, almost 300 lines of code,
and it will grow quite a bit I'm sure as we develop this important capability.
git pull and you'll see the new sourcefile.
The behavior of edbrowse is still mostly as it was before,
I've just made foundational changes,
but now I can make some real changes / improvements.
> Actually, I think even Windows provides ways for you to override the defaults for things.
Sure they do, now, after the law suit,
so they have to allow users to use maybe explorer + eudora, or perhaps firefox + outlook.
Naturally they wanted to keep you locked into their software only and forever,
but that wouldn't fly.
But I digress.
> Could you demonstrate this by *not* starting a new thread when you
> reply to this email (and all emails actually);
Ok this is a test case, it should thread up with your mailx email.
I did change the subject but I don't think that matters.
If this worked I'll make it part of my regular procedure for communication
on this list.
Karl Dahlke
next prev parent reply other threads:[~2015-04-12 20:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-12 16:00 [Edbrowse-dev] mailx Karl Dahlke
2015-04-12 19:36 ` Adam Thompson
2015-04-12 20:46 ` Karl Dahlke [this message]
2015-04-13 20:16 ` [Edbrowse-dev] mailx, plugin commands, mime, new sourcefile Adam Thompson
2015-04-13 20:33 ` Karl Dahlke
2015-04-14 6:49 ` Adam Thompson
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=20150312164608.eklhad@comcast.net \
--to=eklhad@comcast.net \
--cc=Edbrowse-dev@lists.the-brannons.com \
/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).