[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: A new framework for embedding ... without CORBA
From:       Kurt Granroth <granroth () kde ! org>
Date:       1999-10-01 23:51:18
[Download RAW message or body]

Graham TerMarsch wrote:
> I'd looked at what'd really be involved in doing one, and didn't think that
> it'd be too hard to do.

Nope!  The ioslave part is a piece o' cake as long as you know the
protocol itself.

> However, I did have question as to how NNTP URLs would be
> represented, considering that NNTP itself has several other
> extensions (e.g. 'xpat') that don't really map across into any sort
> of URL.  Other things such as "how do I just pull down the _headers_
> for a single msg, without the msg body" also left me as a bit
> puzzled as to how they'd map properly.

You will need to use a kioslave specific URL in this case.  The
problem (as you well know) is that all "official" NNTP URLs don't
contain nearly enough information.

You might want to try something like:

nntp://user:pass@host:port/news/path/msg?action=something&other=action

Some *possible* examples

Download a message:
nttp://granroth@news.host.com/comp/os/linux/announce/6283927?action=download

Download just the headers of a message:
nttp://news.host.com/comp/os/linux/announce/6283927?action=download&type=headers

Get a list of messages for a group:
nttp://news.host.com/alt/mygroup/

Formatting the URLs like this makes parsing quite easy and one can
contain a LOT of information in the x=x pairs (all started with ? and
seperated by &)
-- 
Kurt Granroth            | granroth@kde.org
KDE Developer/Evangelist | http://www.pobox.com/~kurt_granroth
        KDE -- Putting a Friendly Face on Linux

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic