Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Warning when downloading from FTP #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:
> GET("ftp://ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/natality/Nat2015ps.zip") Warning in parse_http_status(lines[]) : NAs introduced by coercion to integer range Warning: Failed to parse headers: 229 Entering Extended Passive Mode (|||64946|) 213 1255090 125 Data connection already open; Transfer starting. 226 Transfer complete. Response [ftp://ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/natality/Nat2015ps.zip] Date: 2018-09-07 16:45 Status: 226 Content-Type: <unknown> Size: 1.26 MB <BINARY BODY> >
I think it is because httr
To download from ftp, I would rely directly on
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).