Advertisement
2002ASP Internet/ Browsers/ HTML #7911

FTP WININET Win32

Simple FTP DOS/WIN32 application that checks the machine day of the week, then goes and downloads the appropriate file for that day. I warn you, I stink at C/C++ and other languages and have only toyed with simple stuff. First, let me say this. I am a Network Engineer, MCSE, CNE, CCNA and work with routers, servers, Novell/NT some database apps/servers, firewalls, security, yada yada.. I wanted to learn C/C++ to be able to read, and understand hopefully, security applications, exploits etc...since I have taken more of an interest in security lately. Of course, in my day-to-day activities, something always comes up that requires me to make a task transparent to the end-users. It seems nobody can start an FTP from a Windows command prompt, login and download a file without it becoming a major ordeal, so they scream to the Information Technology department and make it our job (sound familiar?). So, this is what really prompted me to write something useful in C++. There are probably better ways to handle the checking of the day and firing up your Internet FTP session other than the way I did it, any comments are greatly appreciated on how to streamline this code. First, finding information on search engines/news groups and even MSDN is very difficult. Documentation to a novice is very cryptic, especially when there is very little of it to begin with on Microsoft's site. I had a heck of a time actually getting the simple FTP connection to work and scramble for days working on it. Hopefully, this will make it very apparent on how to get started with WININET to make FTP connections and lead you to bigger and better things. Please comment on the code.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine