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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!