#84410 lftp difference between command line and inside lftp

Noèl Köthe <[email protected]>
Newsgroups gmane.network.lftp.devel
Organization Debian GNU/Linux, www.debian.org
Message-ID <[email protected]>
retitle 84410 difference between "lftp http://www.analog.cx/download.html" and lftp and then "get URL"
tags 84410 + upstream confirmed
thanks

Hello,

a reproduceable problem:

LFTP | Version 3.2.1 | Copyright (c) 1996-2005 Alexander V. Lukyanov
# lftp http://www.analog.cx/download.html
cd: Access failed: 404 Not Found (/download.html)
# lftp
lftp :~> get http://www.analog.cx/download.html
9015 bytes transferred

the problem is the additional / at the end of HEAD:

# lftp -d http://www.analog.cx/download.html
---- Connecting to www.analog.cx (66.35.250.210) port 80
---- Sending request...
---> HEAD /download.html/ HTTP/1.1
---> Host: www.analog.cx
---> User-Agent: lftp/3.2.1
---> Accept: */*
---> Connection: keep-alive
--->
<--- HTTP/1.1 404 Not Found
<--- Date: Wed, 24 Aug 2005 16:15:50 GMT
<--- Server: Apache/1.3.33 (Unix) PHP/4.3.10
<--- Connection: close
<--- Content-Type: text/html; charset=iso-8859-1
<---
cd: Access failed: 404 Not Found (/download.html)
---- Closing HTTP connection

the second request in lftp doesn't have this ending /:

# lftp -d
lftp :~> get http://www.analog.cx/download.html
---- Resolving host address...
---- 1 address found
---- Connecting to www.analog.cx (66.35.250.210) port 80
---- Sending request...
---> GET /download.html HTTP/1.1
---> Host: www.analog.cx
---> User-Agent: lftp/3.2.1
---> Accept: */*
---> Connection: keep-alive
--->
<--- HTTP/1.1 200 OK
<--- Date: Wed, 24 Aug 2005 16:17:16 GMT
<--- Server: Apache/1.3.33 (Unix) PHP/4.3.10
<--- Last-Modified: Mon, 20 Dec 2004 09:38:30 GMT
<--- ETag: "35068-2337-41c69d96"
<--- Accept-Ranges: bytes
<--- Content-Length: 9015
<--- Connection: close
<--- Content-Type: text/html
<---
---- Receiving body...
---- Hit EOF
---- Closing HTTP connection
9015 bytes transferred



-- 
Noèl Köthe <noel debian.org>
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBDDJ4Z9/DnDzB9Vu0RAvl6AKCMxvJG1ne92xt4Ws7n1a/3JJBI8gCfdtuj
UAdvVi4FxxnCk9xbdjk2/I8=
=afLR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.