LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-09-2009, 06:39 AM   #1
rajeshcurl
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
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
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
rajeshcurl
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
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

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

depends on your Distro..

http://curl.haxx.se/
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 PM.

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