09-29-2009 07:11 AM
Hello
I am trying to connect the ftp server by InetFTPLogin("ftp://xxx.xxx.xxx.xxx:21","","").
The ftp server does not have a userName and Password.
The function return error (-11);
From Windows run command it works good.
Any body has any Idea, about properly connection to ftp server?
Thanks!
09-29-2009 08:22 AM
Have you tried passing NULL for the password, instead of an empty string? The function help suggests that the behaviour between the two options might be different.
JR
09-30-2009 02:11 AM
Sorry, but it's doesnt work!
The InetFTPLogin function must recieve 3(const char *) parameters.
The NULL in one of them cause to Fatal error!!!
I need a help in this proplem!
09-30-2009 03:01 AM
are you sure the server has no username or password ? i am not quite sure, but i think the ftp protocol requires a login.
now there exists a standard practice which consists of using "anonymous" as the username and your email address (or whatever you want) as a password. most ftp clients perform anonymous login automatically unless told to not do so.
when running the command line ftp, what does the server tell in the message-of-the-day when connecting ?
10-01-2009 07:08 AM
The parameter number 4 is user name (I put "" {empty}) and parameter number 5 is password (I put NULL).
when running the command line ftp, what does the server tell in the message-of-the-day when connecting ?Its not say anything, its just open!!!
Look please at msdn the help for (InternetConnect) function.The function has 4 possibilities for user name and password.The second possibility (it's my problem in cvi ftp drivers) working in windows SDK and doesn't work in cvi.
The first option "anonymous" its not for me.
Can you explain that?