LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-02-2005, 01:03 AM   #1
grub
Member
 
Registered: Mar 2003
Location: Kurnool, India.
Distribution: Redhat 9
Posts: 67

Rep: Reputation: 15
Question Accessing a webpage in C/C++


How can I access a webpage in C/C++.
Basically I need to process info in the webpage and store it.
Since I am addicted to C, I prefer to do this in C.

Grub
 
Old 02-02-2005, 01:19 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, unless you can find code out there to do this for you, you'd basically have to open a socket to the other end, form proper HTTP messages, and then retrieve and parse the content. Much easier in PERL, PHP, or any of many other languages if you ask me. Though I suppose it depends on your long term goal.
 
Old 02-02-2005, 01:21 AM   #3
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Blog Entries: 1

Rep: Reputation: 44
Yeah with just the LWP module, Perl can perform all kinds of web voodoo.

jrtayloriv
 
Old 02-02-2005, 02:59 AM   #4
grub
Member
 
Registered: Mar 2003
Location: Kurnool, India.
Distribution: Redhat 9
Posts: 67

Original Poster
Rep: Reputation: 15
Hi Guys, thank you for your info.
Can you refer me location or books where i can find the protocol/format of messages used for HTTP.
 
Old 02-02-2005, 03:03 AM   #5
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Blog Entries: 1

Rep: Reputation: 44
Thumbs up

http://www.oreilly.com/openbook/webclient/ch03.html

jrtayloriv
 
Old 02-02-2005, 06:30 AM   #6
drisay
Member
 
Registered: Sep 2004
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 30
look here http://curl.haxx.se/libcurl/competitors.html

there are some http libraries that can be used for c/c++ environments.
 
Old 03-31-2005, 11:55 PM   #7
kamathln
LQ Newbie
 
Registered: Jun 2003
Location: Mangalore,India
Distribution: redhat 8 (currently) but i keep changing distros
Posts: 5

Rep: Reputation: 0
[Offtopic]

Sorry for offtopic post. But i couldnt find ANY other way to get to you.[referring to user "grub"] can you please mail me at kamathln-At-gmail.com ? I needed to talk to you about some OSS activity.

Last edited by kamathln; 03-31-2005 at 11:56 PM.
 
  


Reply



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
Webpage How-To Linux~Powered Programming 5 03-19-2007 05:20 PM
Webpage troycus Linux - Software 4 06-16-2005 12:26 PM
webpage sanjibgupta Linux - Newbie 3 10-11-2004 03:09 AM
no one can see my webpage! killjoyce Linux - Networking 7 04-06-2004 02:53 PM
Help with webpage lockejr Linux - General 16 03-28-2003 09:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:47 AM.

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