On 06/11/2015 12:59 AM, Jonathan Barber wrote:
On 11 June 2015 at 07:07, ToddAndMargo <[email protected]
<mailto:[email protected]>> wrote:

    On 06/10/2015 09:47 PM, ToddAndMargo wrote:

        Hi All,

        This is not what Firefox shows!

        $ curl --list-only
        ftp://download.videolan.org/pub/videolan/vlc/2.2.1/win32


If you include a terminal "/", then you get the expected output. If you
increase the verbosity level on the curl command:
curl -v -list-only ...

then you can see that curl connects to the ftp server and changes
directory upto "2.2.1" but no further, so I assume that without the "/"
at the end curl doesn't consider "win32" to be a directory and ignores
it for the purpose of the --list-only command.

I presume the browsers are noticing that "win32" is a directory and are
changing into the directory before doing the listing.

Cheers



        vlc-2.2.1.tar.xz.md5
        macosx
        win32
        vlc-2.2.1.tar.xz.sha1
        vlc-2.2.1.tar.xz.sha256
        vlc-2.2.1.tar.xz
        win64
        vlc-2.2.1.tar.xz.asc


        It should look like:

        $ curl --list-only
        ftp://download.videolan.org/pub/videolan/vlc/2.2.1/win32/win32

        vlc-2.2.1-win32.xpi
        vlc-2.2.1-win32.xpi.sha256
        vlc-2.2.1-win32.7z.md5
        vlc-2.2.1-win32.xpi.asc
        vlc-2.2.1-win32.xpi.md5
        ...


        And I can get that by repeating the win32:

        curl --list-only
        ftp://download.videolan.org/pub/videolan/vlc/2.2.1/win32/win32

        But that messes up my script.

        wget does the same thing.

        What the heck ????

        -T


    I figured out a work around for this, but I would still
    like to know why this is happening



Hi Jonathan,

That was it.  Mumble, mumble.  It was about to drive me crazy.

Thank you for helping me with this,

-T

$ curl --silent --list-only ftp://download.videolan.org/pub/videolan/vlc/2.2.1/win32/ | grep -i ".exe"

vlc-2.2.1-win32.exe.sha256
vlc-2.2.1-win32.exe.asc
vlc-2.2.1-win32.exe
vlc-2.2.1-win32.exe.sha1
vlc-2.2.1-win32.exe.md5

Reply via email to