Simple Curl

Here's an example of sending a standard XML or JSON file to the Encoding.com API via the curl command line application included with most operating systems. In the below examples, it is assumed you've created a valid sample.xml or sample.json file in the same directory.