wget & curl
Understanding how to make http requests of remote servers and inspecting or storing the content is essential to working with modern web APIs and applications. If you do not already know how to use wget and curl to inspect or retrieve files from remote http services, you should follow the material below to learn how to use these basic commands. Your mentor should be able to provide you a set of services to test and explore against.
Goals/Objectives/Outcomes
- Understand how to use curl and wget to GET from remote services
- Understand how to use curl and wget to POST to remote services
- Understand how to use wget recursively to download sets of files
- Understand how to specify the filename of the downloaded files
- Understand how to pipe the output from curl and wget requests to tools for formatting xml or json
Reference Material
- http://www.thegeekstuff.com/2009/09/the-ultimate-wget-download-guide-with-15-awesome-examples/#more-1885
- http://xahlee.info/linux/wget_curl_tutorial.html
- http://www.editcorp.com/personal/lars_appel/wget/v1/wget_7.html
- http://www.tecmint.com/10-wget-command-examples-in-linux/
- http://www.unixtutorial.org/2014/07/how-to-use-wget-and-curl/
Measures of Success
Participant is comfortable using wget and curl to interact with remote http services