Although cURL is the command-line application of choice for interacting with the Registry Service, some machines may only have Wget installed or some users may prefer Wget over cURL. The functionality of each application is essentially the same. This document describes the differences between the two applications.
The following command provides an example of using cURL to register a product with the Registry Service:
% curl -X POST -H "Content-type:application/xml" -v -d @new_product.xml \ http://localhost:8080/registry/extrinsics
The same action can be achieved using Wget with the following command:
% wget --post-file new_product.xml --header "Content-type:application/xml" -v \ http://localhost:8080/registry/extrinsics
The following command provides an example of using cURL to retrieve content from the Registry Service:
% curl -X GET -H "Accept:application/xml" -v \ http://localhost:8080/registry/extrinsics
The same action can be achieved using Wget with the following command:
% wget --header "Accept:application/xml" -v -O - \ http://localhost:8080/registry/extrinsics
The Wget application works fine for actions requiring GET or POST requests but does not offer an equivalent function for DELETE requests.