SCIENTIFIC-LINUX-USERS Archives

September 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Traylen <[log in to unmask]>
Reply To:
Steve Traylen <[log in to unmask]>
Date:
Tue, 1 Sep 2015 10:45:56 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
On 09/01/2015 08:00 AM, ToddAndMargo wrote:
> Hi All,
>
> Is there any "curl --list-only" type command for http sites,
> such as this turkey:
>
>      http://releases.mozilla.org/pub/thunderbird/releases/
>
> I can only get curl to --list-only with ftp sites.
>
> Many thanks,
> -T
Not that I know of with curl, but you can do it with lftp:

lftp http://releases.mozilla.org/pub/thunderbird/releases/ -e 'ls ; 
exit' | head

cd ok, cwd=/pub/thunderbird/releases
drwxr-xr-x  --  ..
drwxr-xr-x            -  2004-01-13 19:14  0.1
drwxr-xr-x            -  2004-01-13 19:16  0.2

ATOM RSS1 RSS2