Skip to content

http client for web files downloading, interview home assignment

License

Notifications You must be signed in to change notification settings

GimmeDanger/easy-get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-get

C++ http client for web files downloading

Building in Linux

Get sources & install:

$ git clone https://github.com/GimmeDanger/easy-get.git
$ bash build.sh

Building script runs unit tests at the end:

url_construction_test OK
parse_input_options_test OK
parse_input_urls_test OK
http_queries_simple_html_test OK
http_queries_picture_test OK
http_queries_video_test OK
http_queries_pdf_test OK

Usage

usage : easy-get [OPTIONS] URL ...
-n NUM: available number of threads
-h    : print help message and exit
Expected URL format: http://HOSTNAME/[PATH]

Examples

Downloading a random video sample and picture:

./easy_get -n 2 http://mirrors.standaloneinstaller.com/video-sample/star_trails.mp4 http://st.kp.yandex.net/images/kadr/sm_2562186.jpg

About

http client for web files downloading, interview home assignment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published