simple HTTP client in C