Use cURL command line tool to use our file difference checker, compare two DOCX documents and see the differences between them clearly shown in the output. You no longer need to compare your documents manually. Also note that the comparison result can be exported to a DOCX, PDF, DOC and others.
Our cURL SDK is designed to give you the most accurate result, even though comparison is a complex function itself.
Sometimes you need to be sure that the document in the DOCX format has not been changed, and if it has, you need to find out what the difference is. Just use our cURL diff tool to compare two DOCX files and find differences in whole words or single characters. Moreover, if only one character in a word has changed, this word will be marked as changed entirely.
Now you no longer need to spend time manually comparing DOCX documents, and you can quickly find even small changes and export such diffs to a document in a convenient format.
Check out how our solution to compare DOCX files using cURL SDK works. To achieve this, load the DOCX files you want to compare and select the export file format – it will be automatically loaded after comparing.
Note that you need to accept all revisions in compared documents before calling the comparison method, as shown in our example:
// Upload documents to cloud storage.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input1.docx" \
-X PUT \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer ####################" \
-F FileContent="@%FileName1%"
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input2.docx" \
-X PUT \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer ####################" \
-F FileContent="@%FileName2%"
// Compare documents in cloud.
curl -v "https://api.aspose.cloud/v4.0/words/Input1.docx/compareDocument?destFileName=Output.docx" \
-X PUT \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ####################" \
-d "{\"Author\":\"author\",\"ComparingWithDocument\":\"Input2.docx\"}"
// Download result document from cloud storage.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Output.docx" \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ####################" \
Download and install the curl utility. Please follow these Instructions to quickly get the necessary security credentials and access our REST API.
There are no special requirements for using this tool.
You can perform compare operation for other file formats: