Closed ronisbr closed 5 years ago
Sounds like a good idea. I would also like to have the ability to use HTTP.jl. We are having a PDR this week so I will not get to it before next week.
Nice! Good luck with the PDR! I will try to submit a PR so that you can take a look next week.
I cannot retrieve file via ftp using curl here, but this is likely due to the local firewall.
$ curl ftp://ftp.geolab.nrcan.gc.ca/data/solar_flux/daily_flux_values/fluxtable.txt
curl: (13) Bad PASV/EPSV response: 502
However it works if I use active mode ftp instead of passive mode by passing the correct option to curl:
curl -P - ftp://ftp.geolab.nrcan.gc.ca/data/solar_flux/daily_flux_values/fluxtable.txt
or with wget, since wget will try passive mode, fail and then try active mode and succeed.
Maybe one of the following options would fix all these problems: 1) if this is an ftp connection, try active ftp if passive ftp fails: use curl -P - on the second try. 2) if curl fails, retry with wget.
I have implemented a simple backend system. Please have a look at master
or a new version that is coming in the next few days.
Hi @helgee ,
For some reason, sometimes I cannot download
fluxtable.txt
usingcurl
but I can usingwget
. The address isftp://ftp.geolab.nrcan.gc.ca/data/solar_flux/daily_flux_values/fluxtable.txt
. Hence, I am wondering if it is possible to let the user select which backend they want to download the files.