Alex7777qq
asked on
How can I copy files from http:// to the local hard disk in C++, MFC or a .bat file
Hello,
How can I copy files from a web location - http:// - to the local hard disk? The platforms I should use are C++, MFC with Visual Studio 2005 or a .bat file. I have found one tool, called httpcopy - http://www.activeplus.com/us/freeware/httpcopy/ - but I am not sure if I can distribute it with my product, that is not free, but payed. I prefer making this copy process in C++. Any ideas or sample code how this copy can be made?
Thanks,
Alex
How can I copy files from a web location - http:// - to the local hard disk? The platforms I should use are C++, MFC with Visual Studio 2005 or a .bat file. I have found one tool, called httpcopy - http://www.activeplus.com/us/freeware/httpcopy/ - but I am not sure if I can distribute it with my product, that is not free, but payed. I prefer making this copy process in C++. Any ideas or sample code how this copy can be made?
Thanks,
Alex
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Since your trying to manipulate file like that you should have a look to the CFtpConnection class or, better, re-read the article about the FTP Client application.
http://msdn2.microsoft.com/en-us/library/hf9x9wb4(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/hf9x9wb4(VS.80).aspx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am using
pSessionURL.SetOption(INTE
to set the timeout, but it does not work. What I am doing wrong?
Open in new window