networkolizer.tar.gz is a very short sample that opens a socket connection (using the Berkeley sockets API), and then writes an HTTP request, and reads the response.