I've developing PHP for a very long time now and have only messed with C on occasion. I have therefore got far too used to simple functions such as file_get_contents() to retrieve the HTML / Data stored on an external http server.
I am looking for a simple method ie. preferable a function in C which does the same thing as the PHP function without using a library such as libcurl which needs compiling etc. I'm using gcc to compile and have only half managed to write one which involves -lsocket and -lnsl
Thank you all