lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.1k stars 161 forks source link

http download from wrong directory #517

Open Safari77 opened 5 years ago

Safari77 commented 5 years ago

When I get dir listing from g directory or make lftp get it via pressing tab to complete geeqie, lftp downloads from the wrong directory.

lftp :~> ope http://ftp.acc.umu.se:/debian/pool/main/g/
cd ok, cwd=/debian/pool/main/g
lftp ftp.acc.umu.se:/debian/pool/main/g> cd geeqie
cd: received redirection to `http://ftp.acc.umu.se/debian/pool/main/g/geeqie/'
cd ok, cwd=/debian/pool/main/g/geeqie
lftp ftp.acc.umu.se:/debian/pool/main/g/geeqie> get geeqie_1.4+git20190121-2.debian.tar.xz
32000 bytes transferred
lftp :~> ope http://ftp.acc.umu.se:/debian/pool/main/g/
cd ok, cwd=/debian/pool/main/g
lftp ftp.acc.umu.se:/debian/pool/main/g> cd geeqi[TAB]
cd ok, cwd=/debian/pool/main/g/geeqie
lftp ftp.acc.umu.se:/debian/pool/main/g/geeqie> get geeqie_1.4+git20190121-2.debian.tar.xz
get: Access failed: 404 Not Found (geeqie_1.4+git20190121-2.debian.tar.xz)
Safari77 commented 5 years ago
set ftp:proxy http://127.0.0.1:3128/
set hftp:proxy http://127.0.0.1:3128/
set http:proxy http://127.0.0.1:3128/
set https:proxy http://127.0.0.1:3128/
set ssl:cert-file /etc/pki/tls/certs/ca-bundle.crt
set ssl:verify-certificate yes
set hftp:decode no
set http:decode no
lavv17 commented 4 years ago

What lftp version do you use?

Safari77 commented 4 years ago

4.8.4

lavv17 commented 4 years ago

Probably the list of files is not parsed properly. Please send me the html index.

сб, 21 дек. 2019, 10:26 Sami Farin notifications@github.com:

4.8.4

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lavv17/lftp/issues/517?email_source=notifications&email_token=AAHLWXCBXZU7SSFVS3BGH2TQZXAIRA5CNFSM4HBNZLOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHOW55A#issuecomment-568159988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLWXBQ2PAJZLMO3I3SYBLQZXAIRANCNFSM4HBNZLOA .

Safari77 commented 4 years ago

1577087666.731 885 127.0.0.1 TCP_MISS/404 4518 GET ftp://ftp.acc.umu.se/debian/pool/main/g/geeqie/geeqie_1.5.1-2.dsc;type=a - HIER_DIRECT/2001:6b0:19::165 text/html

in squid logs I see lftp adds ;type=a.

lavv17 commented 4 years ago

It does not look like you used http here. In the first message you showed this command:

ope http://ftp.acc.umu.se:/debian/pool/main/g/

But to turn off this ";type=" use "set hftp:use-type off"

пн, 23 дек. 2019 г. в 10:56, Sami Farin notifications@github.com:

1577087666.731 885 127.0.0.1 TCP_MISS/404 4518 GET ftp://ftp.acc.umu.se/debian/pool/main/g/geeqie/geeqie_1.5.1-2.dsc;type=a

  • HIER_DIRECT/2001:6b0:19::165 text/html

in squid logs I see lftp adds ;type=a.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lavv17/lftp/issues/517?email_source=notifications&email_token=AAHLWXB6AILCHPRBAHNNVGDQ2BVKLA5CNFSM4HBNZLOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHQPZVI#issuecomment-568392917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLWXFIVHGMXN4Z53KRHRDQ2BVKLANCNFSM4HBNZLOA .

-- Alexander.

Safari77 commented 4 years ago

Now ftp:// works, but http:// still downloads from the wrong directory.