FTP file creation

Hi,
regarding ftp, I connected to the server through connect call, after that i send command ftp through send call . I got return value 220. then in order to login i used strcpy(msgbuf, “USER”) , strcat username to the command and then sent . I used snprintf function also. but again i got return value 220. through terminal I am able to connect to the server through commands curl ftp://ftpsit.com --user username:password.
I could not understand what is problem in the code. and please tell me where should i use this ./busybox-arm51_1.26 ftpget. suggest me any modifications in the code,
Thanks and regards,
K Subrahmaniam