| | |
downloading a file
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
I have a question and I was hoping someone could point me in the right direction.
I know the IP address of a server I want to download a file from, and I know the path on the client hard disk I want to download it to. How could I use C++ to download a file? I have http, ftp or any other protocol available on the server. Should I start brushing up my TCP/IP knowledge?
I know the IP address of a server I want to download a file from, and I know the path on the client hard disk I want to download it to. How could I use C++ to download a file? I have http, ftp or any other protocol available on the server. Should I start brushing up my TCP/IP knowledge?
>Should I start brushing up my TCP/IP knowledge?
Yes, unless you want to write a wrapper program.
wget is a program that simply gets a file from a url, and if you used a system() call to it, it would work. There's also a Windows version of wget at your disposal.
Yes, unless you want to write a wrapper program.
wget is a program that simply gets a file from a url, and if you used a system() call to it, it would work. There's also a Windows version of wget at your disposal.
"Technological progress is like an axe in the hands of a pathological criminal."
Hmm.. if you want to code this thign from scratch, you need to use some socket library. (like winsock for windows)
Maybe looking at this thread would help a bit:
http://www.daniweb.com/techtalkforums/thread50205.html
Hope it helped, bye.
Maybe looking at this thread would help a bit:
http://www.daniweb.com/techtalkforums/thread50205.html
Hope it helped, bye.
I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- Downloading a file (ASP.NET)
- Downloading a File from Server using JavaScript (JavaScript / DHTML / AJAX)
- Problems downloading Python (Python)
- Howdo I download a .mim file in Macintosh (OS X)
Other Threads in the C++ Forum
- Previous Thread: pop machines program....wont work, also proper parametres?
- Next Thread: Array of pointers to objects
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






