You are here:

C/how to use HTTP GET method in a C program

Advertisement


Question
Sir,
I have to do a simple web proxy server using HTTP 1.0 and C .
The web browser is a client where u type sth like
" http://www.yahoo.com"
In the server program i should retreive this using HTTP GET method in a C program .

I am unable to find how to retreive that using HTTP GET method in a c program and wat is it's syntax ...I din't find  source code of even a single C program whihc uses HTTP ...

** plz tell me the header files to include while using HTTP ..
please help me,

Thanks,
karthik.  

Answer
HTTP is a protocol, which has many commands like GET.
To implement any such network protocols using C, you will have to learn socket programming. It provides wrapper functions which can be used for communication and implementing HTTP like protocols.

So, that means you have to learn networking and socket programming.

-Narendra

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.