Question: Create a http based client in c/c++ that follows the similarities of the unix command wget. The input of the user should be as follows:
Create a http based client in c/c++ that follows the similarities of the unix command wget. The input of the user should be as follows:
server_hostname, url path of file, (url has server's ip address, port number 80, file path)
For example, input is ./website www.example.com 23.182.515.34:80/appendix.html
For get/head -> get /appendix.html http/1.1 Host: www.example.com (-h can be placed here if header is only needed)
Output must be the file output.dat unless a header was only requested -h (if -h must output server response to stdout)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
