Re: Accessing web with a C program



On Feb 8, 3:22 pm, "Neo" <bvasund...@xxxxxxxxx> wrote:
Hi,

I want to write a program that essentially connects to web,
access some web page and pass some parameters and fetch the return
values and print
like LWP in Perl Context.

Can some one suggest me what are the headers I might require and
directions to such a documentation.

Given the proper compliant implementation, you should only need
#include <stdio.h>

You /should/ be able to
FILE *web = fopen("http://google.com/","r";);
and have a valid read connection to the named web page.

However, few (if any) compliant C implementations provide this sort of
interpretation of the filename string. If you find that yours does
not, then you'll have to look for a compiler that does. Otherwise, you
are stuck with non-standard (as far as CLC goes) libraries that you
will have to discuss in the appropriate newsgroup (but not here).

HTH
--
Lew



.