LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to write a simple C program in Linux to download a web page? (http://www.linuxquestions.org/questions/linux-software-2/how-to-write-a-simple-c-program-in-linux-to-download-a-web-page-717911/)

rajeshcurl 04-09-2009 06:39 AM

How to write a simple C program in Linux to download a web page?
 
Help me, to write a simple C program to download a web page by using exsisting kernal network drivers.

Where to find a complete documentation about linux kernal network drivers ?

reptiler 04-09-2009 07:21 AM

I think the easiest way would be using the curl-library, which offers functions to do HTML quite easily.
Otherwise you'll probably have to work with sockets and then implement HTML yourself, which of course requires some extra work and can be avoided by using the aforementioned curl.

rajeshcurl 04-09-2009 07:54 AM

Thank you reptiler.

Let me know, where to download the curl-library for linux.

farslayer 04-09-2009 07:55 AM

aptitude install curl
sudo apt-get install curl
yum install curl

depends on your Distro..

http://curl.haxx.se/


All times are GMT -5. The time now is 05:55 PM.