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>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to