A simple HTTP function in C (for unix)