You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
4.4 KiB

4 years ago
#### Functional
4 years ago
##### Try to run the following command `"./wget https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg"`
4 years ago
4 years ago
###### Did the program download the file `"EMtmPFLWkAA8CIS.jpg"`?
4 years ago
4 years ago
##### Try to run the following command with a link at your choice `"./wget <https://link_of_your_choice.com>"`
4 years ago
###### Did the program download the expected file?
4 years ago
##### Try to run the following command `"./wget https://golang.org/dl/go1.15.linux-amd64.tar.gz"`
4 years ago
4 years ago
###### Did the program download the file `"go1.15.linux-amd64.tar.gz"`?
4 years ago
###### Did the program displayed the start time?
###### Did the start time and the end time respected the format? (yyyy-mm-dd hh:mm:ss)
###### Did the program displayed the status of the response? (200 OK)
###### Did the Program displayed the content length of the download?
###### Is the content length displayed as raw (bytes) and rounded (Mb or Gb)?
###### Did the program displayed the name and path of the file that was saved?
4 years ago
##### Try to download a big file, for example: `"./wget http://ipv4.download.thinkbroadband.com/100MB.zip"`
4 years ago
###### Did the program download the expected file?
###### While downloading, did the progress bar show the amount that is being downloaded? (KiB or MiB)
###### While downloading, did the progress bar show the percentage that is being downloaded?
###### While downloading, did the progress bar show the time that remains to finish the download?
###### While downloading, did the progress bar progressed smoothly (kept up with the time that the download took to finish)?
4 years ago
##### Try to run the following command, `"./wget -O=test_20MB.zip http://ipv4.download.thinkbroadband.com/20MB.zip"`
4 years ago
4 years ago
###### Did the program downloaded the file with the name `"test_20MB.zip"`?
4 years ago
##### Try to run the following command, `"./wget -O=test_20MB.zip -P=~/Downloads/ http://ipv4.download.thinkbroadband.com/20MB.zip"`
4 years ago
###### Can you see the expected file in the "~/Downloads/" folder?
4 years ago
4 years ago
##### Try to run the following command, `"./wget --rate-limit=300k http://ipv4.download.thinkbroadband.com/20MB.zip"`
4 years ago
###### Was the download speed always lower than 300KB/s?
4 years ago
##### Try to run the following command, `"./wget --rate-limit=700k http://ipv4.download.thinkbroadband.com/20MB.zip"`
4 years ago
###### Was the download speed always lower than 700KB/s?
4 years ago
##### Try to run the following command, `"./wget --rate-limit=2M http://ipv4.download.thinkbroadband.com/20MB.zip"`
4 years ago
###### Was the download speed always lower than 2MB/s?
4 years ago
##### Try to create a text file with the name `"downloads.txt"` and save into it the links below. Then run the command `"./wget -i=downloads.txt"`
4 years ago
```
https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg
http://ipv4.download.thinkbroadband.com/20MB.zip
http://ipv4.download.thinkbroadband.com/10MB.zip
```
###### Did the program download all the files from the downloads.txt file? (EMtmPFLWkAA8CIS.jpg, 20MB.zip, 10MB.zip)
###### Did the downloads occurred in an asynchronous way? (tip: look to the download order)
#### Mirror
4 years ago
##### Try to run the following command `"./wget --mirror http://corndog.io/"`, then try to open the `"index.html"` with a browser
4 years ago
###### Is the site working?
##### Try to run the following command `"./wget --mirror https://oct82.com/"`, then try to open the `"index.html"` with a browser
###### Is the site working?
##### Try to run the following command `"./wget --mirror --reject=gif https://oct82.com/"`, then try to open the `"index.html"` with a browser
###### Did the program download the site without the GIFs?
##### Try to run the following command `"./wget --mirror https://trypap.com/"`, then use the command `"ls"` to see the file system of the created folder.
```
css img index.html
```
###### Does the created folder has the same fs as above?
##### Try to run the following command `"./wget --mirror -X=/img https://trypap.com/"`, then use the command `"ls"` to see the file system of the created folder.
```
css index.html
```
###### Does the created folder has the files above?
4 years ago
##### Try to run the following command `"./wget --mirror https://theuselessweb.com/"`
4 years ago
###### Is the site working?
4 years ago
##### Try to run the following command to mirror a website at your choice `"./wget --mirror <https://link_of_your_choice.com>"`
4 years ago
###### Did the program mirror the website?
#### Bonus
###### +Does the project runs quickly and effectively? (Favoring recursive, no unnecessary data requests, etc)
###### +Does the code obey the [good practices](https://public.01-edu.org/subjects/good-practices/README.md)?