hello every body

i need some help in linux C sockets

how i can read text files remotely

like this

Code:
http://www.www.linuxforums.org/textfile.txt
i need any examples or any tutorials to understand Dealing linux sockets with http in c
thanx ;