Make a program that downloads from a web server a web page. Make sure the download was successful. Time how long it takes. Due: Fri March 5 Points: 333,333 Can extract a hostname from the URL 333,333 Reads the URL from the command line 333,333 Can tell if there is no hostname becuase the URL is stupid/malformed 000,001 Can find a web site that takes longer than 0.5 seconds 1,000,000 Can download the web page from the web server 1,000,000 Can tell if the download failed because either not a 200 error code or read/write failure. 1,000,000 Can compute the time it took. ---------- 4,000,000 total Notes: Time does not include how long it takes to open the socket. Time should have units. Don't say 12.3, say 12.3ms. https://en.cppreference.com/w/cpp/chrono The hostname of http://www.server.com/fred/wilma.html From the 7th char to the first '/' Between the 2nd and 3rd '/' You can use string or arrays of chars (but one is better) Array people want to know about strchr() String people want to know about find()