Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

possible in lynx file download?

0 views
Skip to first unread message

Rick Thomas

unread,
Mar 31, 2013, 6:40:02 PM3/31/13
to

On Macs (an apple macintosh G4, running debian squeeze) I use lynx to
download cd-images from cdimage.debian.org. I have no problem
getting CD ".iso" images. (Except that it seems to prefer IPv6, which
is significantly slower for me than IPv4. Is there a config option to
change that behavior?)

But when I try downloading the MD5SUMS file from the same directory, I
get a few lines of HTML pre-pended to the downloaded file.

Has anybody else seen this behavior? Am I doing something wrong? Is
this a bug in Lynx?

Rick


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/CF54A96C-8FC5-4A7A...@pobox.com

Jude DaShiell

unread,
Mar 31, 2013, 8:20:02 PM3/31/13
to
have you highlighted the md5sums file then tried hitting the (d) key?
With lynx I notice on certain sites different behavior depending on
whether the (d) key is used or the enter key is used to start a download.
On Sun, 31 Mar 2013, Rick Thomas wrote:

>
> On Macs (an apple macintosh G4, running debian squeeze) I use lynx to download
> cd-images from cdimage.debian.org. I have no problem getting CD ".iso"
> images. (Except that it seems to prefer IPv6, which is significantly slower
> for me than IPv4. Is there a config option to change that behavior?)
>
> But when I try downloading the MD5SUMS file from the same directory, I get a
> few lines of HTML pre-pended to the downloaded file.
>
> Has anybody else seen this behavior? Am I doing something wrong? Is this a
> bug in Lynx?
>
> Rick
>
>
>

---------------------------------------------------------------------------
jude <jdas...@shellworld.net>
Microsoft, windows is accessible. why do blind people need screen readers?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/alpine.BSF.2.01.1...@freire1.furyyjbeyq.arg

wes

unread,
Mar 31, 2013, 11:40:01 PM3/31/13
to
hi rick.

> But when I try downloading the MD5SUMS file from the same directory, I get a
> few lines of HTML pre-pended to the downloaded file.

lines like the following?

> <!-- X-URL: http://cdimage.debian.org/debian-cd/6.0.7/powerpc/iso-cd/MD5SUMS -->
> <!-- Date: Mon, 01 Apr 2013 00:34:12 GMT -->
> <!-- Last-Modified: Sun, 24 Feb 2013 00:31:23 GMT -->
> <BASE HREF="http://cdimage.debian.org/debian-cd/6.0.7/powerpc/iso-cd/MD5SUMS">
>

> Has anybody else seen this behavior?

well, i just noticed it now, retracing your steps.

> Is this a bug in Lynx?

i do not believe so. afaict, lynx adds those lines for generally
sensible reasons, as explained here:

http://lynx.isc.org/current/lynx2-8-8/lynx_help/Lynx_users_guide.html#RemoteSource

as mentioned there, if you really want to, you can disable this
behavior by adding

PREPEND_BASE_TO_SOURCE:FALSE

to your lynx.cfg.

> Am I doing something wrong?

you could use wget (or any other tool designed for downloading files
in the general case, as opposed to browsing them specifically) instead
of a browser. lynx adds those lines because they provide information
useful for *browsing*, which is probably not quite what you're doing
with the md5sums files.

> I have no problem getting CD ".iso" images. (Except that it seems to
> prefer IPv6, which is significantly slower for me than IPv4. Is
> there a config option to change that behavior?)

there happens to be a command line option for wget that lets you do
precisely that.

$ wget --prefer-family=IPv4 URL

also, i notce that the page at http://www.debian.org/CD/http-ftp/
requests that one not use a web browser to download iso images, since
most browsers (unlike, eg, wget) are not designed to permit resuming
interrupted/failed downloads at the last failpoint. (see the section
"Downloading Debian CD/DVD images via HTTP/FTP" on that page for more
details.)

using wget, to resume downloading a partially-downloaded file, add the
-c option:

$ wget -c --prefer-family=IPv4 URL

if you like, you could use lynx to navigate to the directory
containing files of interest to you, and then use wget to download
them: lynx lets you call external programs to act on either the
current page (with the EXTERN_PAGE command, possibly mapped to the `,'
key) or the current link (with the EXTERN_LINK command, possibly
mapped to the `.' key.)

lynx must be told about which programs these EXTERN_* commands provide
access to. your lynx installation may have appropriate calls to wget
already defined.

if not, adding the line...

EXTERNAL:http:wget -b -c --prefer-family=IPv4 %s:FALSE

...to the file...

~/.lynx/external

...might suit your purposes. (`wget -b' invokes wget in the
background.)

more details on telling your lynx installation about the external
helper programs you would like to call can probably be found in the
comments of your lynx.cfg. try searching for 'xternal application'.

fyi, for lynx-specific questions, there is a mailing list for lynx:

lynx...@non-gnu.org

hope this helps,
wes


On Sun, 31 Mar 2013, Rick Thomas wrote:

>
> On Macs (an apple macintosh G4, running debian squeeze) I use lynx to
> download cd-images from cdimage.debian.org. I have no problem getting CD
> ".iso" images. (Except that it seems to prefer IPv6, which is significantly
> slower for me than IPv4. Is there a config option to change that behavior?)
>
> But when I try downloading the MD5SUMS file from the same directory, I get a
> few lines of HTML pre-pended to the downloaded file.
>
> Has anybody else seen this behavior? Am I doing something wrong? Is this a
> bug in Lynx?
>
> Rick
>
>
> --
> To UNSUBSCRIBE, email to debian-powe...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
> Archive:
> http://lists.debian.org/CF54A96C-8FC5-4A7A...@pobox.com
>


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/alpine.DEB.2.00.1...@brutus.ling.ohio-state.edu

Andrew Shadura

unread,
Apr 1, 2013, 4:10:02 AM4/1/13
to
Hello,

On Sun, 31 Mar 2013 22:49:06 -0400 (EDT)
wes <davi...@ling.ohio-state.edu> wrote:

> > Is this a bug in Lynx?

> i do not believe so. afaict, lynx adds those lines for generally
> sensible reasons, as explained here:

I believe it actually is a bug. It shouldn't do so when the content
isn't HTML.

--
WBR, Andrew
signature.asc

davi...@ling.ohio-state.edu

unread,
Apr 1, 2013, 6:10:01 AM4/1/13
to
[my reply follows the quoted text]

On Mon, 1 Apr 2013, Andrew Shadura wrote:
> On Sun, 31 Mar 2013 22:49:06 -0400 (EDT)
> Hello,
>
> wes <davi...@ling.ohio-state.edu> wrote:
>
>>> Is this a bug in Lynx?
>
>> i do not believe so. afaict, lynx adds those lines for generally
>> sensible reasons, as explained here:
>
> I believe it actually is a bug. It shouldn't do so when the content
> isn't HTML.

fair enough. report bugs to this address:

lynx...@nongnu.org

i should also mention that i was wrong, when i wrote:

> fyi, for lynx-specific questions, there is a mailing list for lynx:
>
> lynx...@non-gnu.org

the correct address is

lynx...@nongnu.org

cheers,
wes
0 new messages