-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning when downloading from FTP #537
Comments
I think it is because httr 📦 is not made to support ftp. However no warning or error is thrown to inform about that. If this is a deliberate choice for httr to not support ftp, a message could be added 🤔 To download from ftp, I would rely directly on
or base |
Could a more informative warning be provided then like: “httr does not parse headers unless the transport is http or https.”? And in cases other than http/https, make no attempt to parse the header, since it's unsupported. ... With two kids underfoot, I only partially read your response. Yes, a more informative warning would be helpful for times using ftp (or gopher or ... protocols). |
There's no support for ftp in httr. A more informative error message is not high priority because I don't think this is a common source of confusion because httr is clearly branded around http. (But I'd happily review a PR if one was provided) |
changing filesize_fun to fix download from FTP considering that httr is not supposed to work with ftp (r-lib/httr#537)
When downloading from FTP, no http status should be expected (or maybe one should be imputed based on the results of the download), but there is a warning when trying to parse it:
The text was updated successfully, but these errors were encountered: