# FTP file creation

**URL:** <https://forum.legato.io/t/ftp-file-creation/3469>\
**Category:** Uncategorized\
**Created:** [July 22, 2018, 1:41pm UTC](https://forum.legato.io/t/ftp-file-creation/3469 "2018-07-22T13:41:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![subrahmaniam](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@subrahmaniam](https://forum.legato.io/u/subrahmaniam)\
**Post date:** [August 2, 2018, 3:26am UTC](https://forum.legato.io/t/ftp-file-creation/3469/4 "2018-08-02T03:26:04Z")

</div>

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

---

_[View the full topic](https://forum.legato.io/t/ftp-file-creation/3469)._
