Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

cURL

If you've ever used an open source OS, of any sort, there's a good chance that cURL has been bundled alongside it, and as a result you will find its license agreements under the license agreements page (things such as game consoles, intelligent cars, and fridges usually feature a build of cURL). However, it's generally always available to you on the command line, and, as a result, it's a favorite of a lot of admins. This is partly because cURL features an extensive (and highly detailed) list of exit codes:

  1. For example, curling the BBC results in the following:
$ curl bbc.co.uk$ echo $?0

The curl command was successful, so we got a 0 exit code, which pretty much universally means OK.

 

We can try to curl an illegal URL:

$ curl bbc.co.uks ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content