C++ help!

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

C++ help!

Post by Joe »

I am developing an application in C++ which scans a file on my server and if its different from the copy on the users machine then a new copy of the .exe is transferred to the local machine. Everything works perfect but I am looking for a function instead of FTPGetFile(), as the directory permission on my server is set so a password has to be entered in order to do any sort of FTP transactions.

Any help appreciated


Joe 8)
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Perhaps cURL is what you want?
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Ah so its possible for me to integrate cURL within C++?
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

How about these three functions: InternetConnect, FtpOpenFile, InternetReadFile?

FTP Sessions
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

InternetReadFile is exactly what I required. Everything works perfect now, thanks again guys!
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Me posting the link to the php.net's manual about cURL surely was very helpful... =/ Bad habit.
http://curl.netmirror.org/ for more information. I think you'd manage using InternetReadFile, but I thought I'd post the link just to have it done.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

I will have a look at it JAM. Thanks again :)
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

I found this cool reference for anyone who may want to try this function themselves http://coding.derkeiler.com/Archive/C_C ... /2306.html
Post Reply