954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to:Winsock FTP upload in c++

Hi im new to the forum & c++.
I just want to upload a txt file to a FTP server using winsock.
Im writing a c++ application. Application makes a socket connection & communicate with FTP server. I can provide FTP commands & server responses well. I want to know what is the FTP command, which can upload a file to the server.

I dont know how to use STOR command. if i provide the command

STOR myfile.txt


it creates a new file in the server. I want to upload a local file to the server how it can be done?

Communication between server & the application.

USER username
PASS password
220 Welcome to Tripod FTP.

230- ============================================================

230-                      IMPORTANT NOTICE

PASV
227 Entering Passive Mode (209,202,252,54,82,142)


now what command should be provided to upload the file (c:\myfile.txt) to the server.
Thanks in advance.

kiruba_lks
Newbie Poster
1 post since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: