develooper Front page | perl.libwww | Postings from June 2003

[PATCH (revised)] FTP HEAD: ABOR needed

Thread Previous
From:
Ville =?ISO-8859-1?Q?Skytt=E4?=
Date:
June 15, 2003 13:38
Subject:
[PATCH (revised)] FTP HEAD: ABOR needed
Message ID:
1055709483.3460.260.camel@bobcat.ods.org
On Sun, 2003-06-15 at 20:47, Ville Skyttä wrote:

> According to RFC 959 (4.1.3), ABOR after a successful transfer should be
> non-intrusive.  Additionally, Net::FTP::dataconn does a close (only)
> anyway if the transfer was already completed.  Fix attached, which also
> makes the HEAD response code special case obsolete.

Ditching the HEAD special case altogether seems to cause unwanted side
effects.  Attached is a revised patch.  And here are some test cases to
play around with:

$ HEAD ftp://ftp.wu-ftpd.org/pub/README
$ HEAD ftp://ftp.wisdom.weizmann.ac.il/pub/ls-lR.gz

-- 
\/ille Skyttä
ville.skytta at iki.fi


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About