Using Wget

Although cURL is the command-line application of choice for interacting with the Product 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 retrieve a product from the Product Service:

% curl -X GET -o product.out -v \
http://localhost:8080/cas-product/data?productID=<product-identifier>
      

The same action can be achieved using Wget with the following command:

% wget -v -O product.out \
http://localhost:8080/cas-product/data?productID=<product-identifier>