Originally Posted by mehro
i have to request for html file from my client to the server ,i have connectivity code but dont know how to send request for html file ,i need code in c,while i am using redhat 9.
Although it is a lot easier using tools like wget, curl, etc., you can do it "from scratch" in C by opening a connection to port 80 on the server and sending the appropriate "GET" request. Here is a link to the HTTP 1.1 protocol RFC:
Note that if you can use libraries with your code, you could use something like libcurl http://curl.haxx.se/libcurl/
to make the coding a lot simpler.
If you are going to try it from scratch, I would suggest you experiment first with something like Python's socket module or netcat (nc) in order to get a feel for what is actually going on. Or watch what your browser sends a server and what gets send back with a tool like ethereal.