a simple wget-like gtk test project in C