NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57003 (ftp can't handle HTTP redirections?)



Synopsis: ftp can't handle HTTP redirections?

Responsible-Changed-From-To: kim->lukem
Responsible-Changed-By: kim%NetBSD.org@localhost
Responsible-Changed-When: Sun, 11 Sep 2022 07:59:16 +0000
Responsible-Changed-Why:
This is best fixed in ftp(1) as it is non-trivial to issue absolute URIs
in the redirects due to not wanting to redirect away from the CDN. I.e.
we would not want to redirect https://nycdn --> http://nyftp here.

Looking at the ftp(1) code, one idea could be to augment parse_url() so
that it can take an additional struct urlinfo for "filling in" missing
pieces of the url argument. This is more invasive than I'm prepared to
dive into right now. :)

Then call parse_url() in the redirect case to ensure an aboslute URI
is passed to go_fetch().

Kind regards,
+ Kimmo





Home | Main Index | Thread Index | Old Index