LinuxQuestions.org
Review your favorite Linux distribution.
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 01-21-2001, 04:07 PM   #1
mjohnson
LQ Newbie
 
Registered: Jan 2001
Posts: 4

Rep: Reputation: 0

Could someone help me understand how to retrieve a web page via C.

My probelm is not the networking part but of the protocol part.. the "fetchPage()" part.

void fetchPage( int sd, const char * url, char * page )
{
// what commands do i need to send here?
}
int main()
{
char page[1024] = "\0";
const char * url = "/cgi-bin/test.pl"
const char * addr = "www.myaddr.com"
int port = 80;

int sd = createWebSocket( addr, port );
fetchPage( sd, url, page );

return 0;
}

thanks for your time and help!
 
  


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
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
my web browser "mozilla fire fox" isn't rendering the page, rather opening the page amolgupta Linux - Software 2 07-26-2005 12:41 AM
web page felnlily Linux - Software 0 02-02-2005 01:21 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM
web page Tigger Linux - Newbie 1 06-09-2003 10:48 PM

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

All times are GMT -5. The time now is 01:29 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