curl_command_to_file_example icon indicating copy to clipboard operation
curl_command_to_file_example copied to clipboard

cURL command to c file

cURL --libcurl Example

One thing I never realized, was I could use the command:

$ curl http://austingwalters.com --libcurl austingwalters.c

To export a curl call to a c file, which can then be compiled by adding '-lcurl':

$ gcc austingwalters.c -lcurl

This has helped me create several funcions which call APIs in C within minutes.