Stephane Chazelas
Mon, 03 Mar 2008 13:22:51 -0800
[Please note that I'm not subscribed to this list] Hi guys,
I was trying to download Fedora Live from: $ lftp http://download.fedoraproject.org/pub/fedora/linux/releases/8/Live/i686/ cd: Access failed: 307 Temporary Redirect (/pub/fedora/linux/releases/8/Live/i686) Looks like the 307 code is not understood as a redirection in lftp. --- /home/stephane/tmp/Http.cc~ 2007-08-24 16:26:35.000000000 +0100 +++ src/Http.cc 2008-03-03 12:04:00.996723762 +0000 @@ -57,7 +57,7 @@ /* Some status code validation macros: */ #define H_20X(x) (((x) >= 200) && ((x) < 300)) #define H_PARTIAL(x) ((x) == 206) -#define H_REDIRECTED(x) (((x) == 301) || ((x) == 302)) +#define H_REDIRECTED(x) (((x) == 301) || ((x) == 302) || ((x) == 307)) #define H_EMPTY(x) (((x) == 204) || ((x) == 205)) #define H_CONTINUE(x) ((x) == 100 || (x) == 102) #define H_REQUESTED_RANGE_NOT_SATISFIABLE(x) ((x) == 416) applied on 3.6.3, does it for me. There might be another couple of codes from the HTTP RFC you might want to add (http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1) Best regards, Stephane