NASA - National Aeronautics and Space Administration

+ NASA Homepage
+ NASA en Español
+ Contact NASA
Go
Planetary Data System - Engineering Node Banner

Using Wget

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 section 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.


FirstGov Logo
+ Freedom of Information Act
+ NASA 2003 Strategic Plan
+ NASA Privacy Statement, Disclaimer, and
   Accessiblity Certification

+ Copyright/Image Use Policy
NASA Logo
Curator: Emily.S.Law
Webmaster: Maryia Sauchanka-Davis
NASA Official: William Knopf
Last Updated:
+ Comments and Questions