comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: FTP downloading in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FTP downloading in IDL [message #80925 is a reply to message #80924] Mon, 23 July 2012 07:16 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

On 07/21/12 19:01, JBT wrote:
> On Saturday, July 21, 2012 2:22:36 PM UTC-7, alx wrote:
>> Le samedi 21 juillet 2012 22:50:05 UTC+2, JBT a �crit : > Dear all, > ... > So, does anyone know a working
>> solution to download a file from an FTP server, please? Your help is much appreciated! > > Best regards, >
>> JBT
>>
>> Your last code (using IDLnetURL) works perfectly on my machine (Windows 7, IDL8.2). Did you authorize IDL to
>> communicate through the firewall of your machine ? alain.
>
> Thanks, Alain, David.
>
> I turned off the firewall on my computer and tried the IDLnetURL code again with an absolute file path for the local
> filename, but still got no luck. So, I guess it has something do with the difference between the Windows version and
> the Mac version of IDL. Does anybody have a clue on this, please?

No joy on my linux setup either:

IDL> print, !version
{ x86 linux unix linux 8.1 Mar 9 2011 32 64}
IDL> oUrl = OBJ_NEW('IDLnetUrl', URL_SCHEME='ftp', $
IDL> URL_HOST='ftp.ngdc.noaa.gov', $
IDL> URL_Port=21, $
IDL> URL_USERNAME='anonymous', URL_PASSWORD='', $
IDL> URL_PATH='STP/GEOMAGNETIC_DATA/INDICES/KP_AP/2008')
% Loaded DLM: URL.
IDL> downloadLoc = oURL->Get(FILENAME='2008')
% IDLNETURL::GET: CCurlException: Error: Ftp Get Request Failed. Error = RETR response: 425,
Curl Error Code = 19. Last Ftp Response = 425 Failed to establish connection.

Different error.

When I just do the ftp access on the command line everything worked fine.

Maybe it's a unix-related thing. I.e. IDL can't do this properly on a non-windows platform?

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL User Group Meeting 2012
Next Topic: libcurl error with Mac OS X upgrade

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:59:32 PDT 2025

Total time taken to generate the page: 0.00246 seconds