From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: Program that connects to internet Date: Tue, 25 Jun 2002 20:22:53 +0100 Lines: 24 Message-ID: <3D18C30D.DBF489BD@phekda.freeserve.co.uk> References: <56f94943 DOT 0206250626 DOT 75b7f2b0 AT posting DOT google DOT com> NNTP-Posting-Host: modem-41.cesium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news5.svr.pol.co.uk 1025033748 27942 62.136.46.41 (25 Jun 2002 19:35:48 GMT) NNTP-Posting-Date: 25 Jun 2002 19:35:48 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. Derek wrote: > I'm a beginning/intermediate C++ programmer. I want to make a program > that can connect to my web site and download a file to my hard drive. > > Does this require me to embed the entire HTTP and FTP protocols in my > program? [snip] No. You could use a program like GNU wget or curl to handle the HTTP and FTP protocols for you. Your program would invoke wget/curl/whatever with the appropriate arguments. (I've used this technique successfully with pakke (formerly called "zippo"), a package manager for DJGPP that can automatically download packages using HTTP or FTP. I used wget.) There are lots of libraries out there for the HTTP and FTP protocols, but the problem you'll have with DJGPP is that there are no networking libraries that work with all the platforms DJGPP runs on. Hope that helps, regards, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]