Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-09-2009, 06:39 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 13

Rep: Reputation: 0
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 ?
Old 04-09-2009, 07:21 AM   #2
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
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.
Old 04-09-2009, 07:54 AM   #3
LQ Newbie
Registered: Apr 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you reptiler.

Let me know, where to download the curl-library for linux.
Old 04-09-2009, 07:55 AM   #4
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
aptitude install curl
sudo apt-get install curl
yum install curl

depends on your Distro..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best simple Linux program for uploading web pages Steve W Linux - Software 5 03-27-2008 12:59 PM
So, Whats another wsiswg web page program for linux? BajaNick Linux - Software 3 07-22-2004 12:10 AM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM
using a small java program to download a web page mrtwice Programming 3 04-23-2003 07:44 AM
Web Page picture loading program for Linux heathpitts Linux - Software 5 03-02-2003 07:04 PM

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration