curl [options] [address]
curl -i // Include header information
curl -H // Custom header to pass to server. i.e. "Content-Type: application/json" or "Authorization token"
curl -d // data. e.g.'{"email":{"email":"email@email.com"}}'
curl -X // HTTP request type. I.e. POST, PUT etc
curl --cookie // Include cookie

Prettyjson

Pipe to prettyjson:
curl https://api.github.com/users/rafeca | prettyjson

URL encoding

--data-urlencode // url encoding
-G // append to url

curl -v -G --data-urlencode 's_locations=[{"city":"Denver","state":"CO"},{"zip":"80113"},{"city":"Englewood","state":"CO"},{"zip":"12121"}]' http://localhost:7781/api/1.0/search  
curl -v -i -H 'Content-Type: application/json' -X GET --cookie "_dezine-web_session=U0Jubmx6SVI2VElSdGFiRGZXbzJ5OW81TlBpQzUzcW9lQ3VTTmZES0dReVZ2SWJVR2JnV3FHR3ZnOU9DdUkzeEZwU0VGckFhVzVJeVVBSitWekNZNXVhNUxUdVY3Njl5YWRPa0pRNkx4MlhaSWN5dUt3YXF1dEZTM2N5VC9rMWdqUHhmajV4L2xJeDZtNXBnc0Y0elE4WFd2UWU5QkcrZkgwRDRNTjUwQnhRbmp3Sm1JbDZqdzExTSs1M3RVUnkwODdOYTRQS0RXSGNMUnRpc0tDalB3VlVmdWYybDQ4Ky9OQWdNdGNVKzBrTGRzUTRvOS9Kai8xczVpckYzY3hmSDcrMzJBaDNDT0dIMk1jQmVHQnJHUEJ6WHFjM0V4aUVoM0VmNW5kN29EVXc9LS1JVHpwamxlRUxpOEwyMHdJQU9CYU53PT0%3D--8ed4f41ee6724e9cd082b06b8201b91da9d2ce80; path=/; HttpOnly" -G --data-urlencode '{"width":"3650","height":"1427","unit":"mm","quantity":"1","material":"170gsm"}' 'http://localhost:3000/api/v1/custom-size-pricing'