CURL is a mighty tool for transfering data to URLS. It supports a wide range of protocols.

Lets have a closer look on some handy snippets for daily work on the commandline:

Fetching content from a URL

When a page redirects to another location (the respondet http-status is somewhat 3xx)
curl can follow the redirection with the -L (- -location) flag.

Want to see what the request and response headers like?
It’s as simple as using the -v (- -verbose) flag.

For POSTing data to an URL u can use the parameter -d (- -data) .

Veröffentlicht unter curl.