Hi Yared,

The error you are getting is something LibCURL is erring on, as described 
here. https://curl.haxx.se/libcurl/c/libcurl-errors.html

If I try using curl with your settings, I get
~ $ curl -u anonymous '192.168.251.200/dataOnFTP.bin'
Enter host password for user 'anonymous':
curl: (7) Failed to connect to 192.168.251.200 port 80: Network is 
unreachable

The FTPClient.jl uses the same library as curl and if you could post how to 
get the file with curl, I might be able to better serve you.

On Wednesday, July 20, 2016 at 4:17:29 PM UTC-5, Yared Melese wrote:
>
>
>
> Hello 
>
> Would you please let me know if I missed anything, I am using FTPClient 
> and using IP address as a host but not able to connect 
> Here are my commands 
>
> using FTPClient
> ftp_init()
> ftp = FTP(host="192.168.251.200", implt=true, ssl=true, user="anonymous", 
> pswd="")
> binary(ftp)
> file = download(ftp, "dataOnFTP.bin", "C:\Users\xyz\test.bin")
> close(ftp)
> ftp_cleanup()
>
> when sending  " using FTPClient" there are bunch of warnings as shown 
> below partially
> WARNING: Base.String is deprecated, use AbstractString instead.
>   likely near C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:35
> WARNING: Base.String is deprecated, use AbstractString instead.
>   likely near C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:67
> WARNING: Base.Uint8 is deprecated, use UInt8 instead.
>   likely near C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:81
> ..
> .
> .and at the end I am getting the following error 
>
> ERROR: Failed to connect. :: LibCURL error #7
>  [inlined code] from C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:138
>  in ftp_command at C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:454
>  in ftp_connect at C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:493
>  in call at C:\Users\melese\.julia\v0.4\FTPClient\src\FTPObject.jl:23
>
> Thanks 
> Yared
>

Reply via email to