Problem 1
Read the
wfetch.c
program. Modify it so that instead of IP numbers it takes hostname as argument. Also, modify to optionally add 'User-Agent: ...' part with content specified on command line.