Simple HTTP client in C