Article View: news.software.readers
Article #178863Re: [slrn] Long URLs and line breaks
From: Whiskers
Date: Fri, 06 Jan 2006 12:38
Date: Fri, 06 Jan 2006 12:38
66 lines
4115 bytes
4115 bytes
On 2006-01-05, Ben Shimmin <bas@llamaselector.com> wrote:
> RFC 1738 [1] says the following:
>
> it is convenient to
> have a separate syntactic wrapper that delimits the URL and separates
> it from the rest of the text, and in particular from punctuation
> marks that might be mistaken for part of the URL. For this purpose,
> is recommended that angle brackets ("<" and ">"), along with the
> prefix "URL:", be used to delimit the boundaries of the URL. This
> wrapper does not form part of the URL and should not be used in
> contexts in which delimiters are already specified.
>
> In some cases, extra whitespace (spaces, linebreaks, tabs, etc.) may
> need to be added to break long URLs across lines. The whitespace
> should be ignored when extracting the URL.
>
> RFC 2396 [2] is similar or identical on this issue.
>
> However, when I press `U' with a URL like this
>
> <URL:http://foo.bar.baz.com/blah.php?
> dfdf2883849c993949.349394893.verylong
> andboringURL.34934939493439483989>
>
> slrn will only present me with the part of the URL up to the first line
> break. According to the RFC, shouldn't it ignore the line breaks and
> recognise everything between `<' and `>' as part of the URL?
>
> b.
>
> [1] <URL:http://rfc.bas.me.uk/rfc1738.txt>
> [2] <URL:http://rfc.bas.me.uk/rfc2396.txt>
Several newsreaders have problems with long URLs being broken into more
than one line.
Regardless of the RFCs, in practice it seems to be better to avoid
breaking a long URL, even if that means having a line that's 'too long' -
or better yet, to quote both the long URL and a smaller one provided by
one of the web sites that abbreviate long URLs into more manageable ones
[3]
If there isn't a macro already that will 'repair' broken URLs for slrn,
then perhaps someone who knows how will eventually feel moved to publish
one.
A related gripe, is that many people quote URLs without the protocol
(http:// or whatever) and sometimes even without the www part that most
web sites require, and slrn currently doesn't recognise any of those.
[3] <http://makeashorterlink.com/index.php> <http://qurl.net/> and
<http://shorterlink.com/> all work by providing a 're-direction' from
their site to the intended one, with a short delay while the actual URL is
displayed to the user so that they can decide whether or not to allow the
re-direction. There may be other services that also do that; there are
also some abbreviation services that re-direct without allowing the user an
opportunity to stop the process - I don't like that. Whatever
abbreviation service might be used, I think it's wise to include the
actual URL too, so that future archive-readers still have some chance of
finding the same data, even after the abbreviated links have ceased to
work.
--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
Technical Details
Message-ID:
<pu4293-408.ln1@ID-107770.user.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrndrqvgp.sv7.bas@candide.bas.me.uk>Show Full Headers
Complete Article Headers
Message-ID: <pu4293-408.ln1@ID-107770.user.individual.net> Subject: Re: [slrn] Long URLs and line breaks Date: Fri, 6 Jan 2006 12:38:17 +0000 From: Whiskers <catwheezel@operamail.com> References: <slrndrqvgp.sv7.bas@candide.bas.me.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 66 X-Trace: individual.net h6yvy8XBRJPwC39xMOfyZQYDUU76vNVrGo9IaynmsR2+rxrKw9 X-Orig-Path: ID-107770.user.individual.net!news X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p& g^8<z5>HA User-Agent: slrn/0.9.8.1 (Linux)