The power of cURL for software tester

One of my favorite language for testing is cURL. As soon as I have to do with RESTful applications or simple HTTP, it’s my first choice. Here I show only a small selection of cURL options.

Basic examples:

Basic HTTP Get request


Follow redirects

HTTP referer

Resumed transfer offset (continue download)

Show response header

Change request method

Set request headers

Advanced examples:

Send a JSON request

Use a file with JSON content

Specify HTTP multipart POST data (JSON and image)

Write output (show status and time total)

Simple server authentication


Ignore SSL certificate error

For more information see help and man pages!!!!