Hi Yared

Sorry, I got side tracked by other things and forgot about this. 

Can you show what's in "host", "username", and "password"? Is it 
just "192.168.251.200","anonymous", and "" respectively?

I tried 
ftp('192.168.251.200', 'anonymous', '')
But got an error saying that I was unable to reach it. But that might make 
sense if I don't have access to it, is that the case here?

Other things that might help is that are you sure your ftp connection is 
over ssl? Is it implicit? Maybe playing around with `implt=true, ssl=true` 
in 
ftp = FTP(host="192.168.251.200", implt=true, ssl=true, user="anonymous", 
pswd="")
might work.

Sam

On Friday, August 5, 2016 at 9:22:15 AM UTC-5, Yared Melese wrote:
>
> Hi Samuel, 
>
> Would you please let me know if the information I provided is enough? 
>
> Thanks 
> Yared
>
> On Wednesday, July 27, 2016 at 12:23:56 PM UTC-5, Yared Melese wrote:
>>
>> Hi Samuel, 
>>
>> Here is how it is done in matlab
>> % connect to ftp 
>> f = ftp(host, username, password)
>> mget(f,'dataOnFTP.bin')
>>
>> % read data from file 
>> readData = fopen('dataOnFTP.bin', 'r', 'ieee-le') 
>>
>> %delete file from server 
>> delete(f, 'dataOnFTP.bin');
>>
>>  Here one thing not included is I would like to find the latest file from 
>> FTP server because there might be similar names with different suffix. 
>>
>> Thanks 
>> Yared
>>
>>
>>
>>
>> On Tuesday, July 26, 2016 at 1:29:36 PM UTC-5, Samuel Massinon wrote:
>>
>>> No worries, can you show me how you get the file with another program?
>>>
>>> On Tuesday, July 26, 2016 at 10:09:06 AM UTC-5, Yared Melese wrote:
>>>>
>>>> Hi Samuel, 
>>>>
>>>> Thanks for your inputs 
>>>>
>>>> I am trying to connect to a file server with IP address and get the 
>>>> latest file with certain extension then process the data and save it on 
>>>> local drive, then delete the file from the server. 
>>>>
>>>> Sorry, I don't know how to get files from Curl, it seems it is mainly 
>>>> designed for Http 
>>>>
>>>> Thanks 
>>>> Yared
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Thursday, July 21, 2016 at 1:56:01 PM UTC-5, Samuel Massinon wrote:
>>>>
>>>>> 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 
>>>>> <http://www.google.com/url?q=http%3A%2F%2F192.168.251.200%2FdataOnFTP.bin&sa=D&sntz=1&usg=AFQjCNFtV1_YpJULt7jEW8s_Ou3Yg22HiQ>
>>>>> '
>>>>> 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