Pelles C forum

C language => Beginner questions => Topic started by: JustC on May 24, 2007, 02:24:58 AM

Title: How to get a webpage from internet?
Post by: JustC on May 24, 2007, 02:24:58 AM
I am trying to have my C-program enabled to get a webpage(html) from internet, and store the downloaded html-code in a file on my disk. It is easy to save the html-code to disk, but I can not figure out ??? how to make my program get the webpage from internet ? What library should I use, and wich function(s)? Is there an easy way to do this?
Title: Re: How to get a webpage from internet?
Post by: JohnF on May 24, 2007, 06:37:07 AM
On my web site there is a BrowserApp that might help

http://www.johnfindlay.plus.com/pellesc/COM/com.html

edit:
Better - attached is GetURL

John
Title: Re: How to get a webpage from internet?
Post by: Stefan Pendl on May 24, 2007, 08:37:46 AM
How about URLDownloadToFile from http://msdn2.microsoft.com/en-us/library/ms775123.aspx ???