Authorizing a deployed ArcGIS Spatial Data Server for Java without a web browser

If you do not have a web browser installed on the server where you have installed ArcGIS Spatial Data Server for the Java platform, you can use a utility that allows you to perform HTTP posts to authorize your deployed ArcGIS Spatial Data Server.

The steps in this topic demonstrate how to do this using an open source utility called cURL, but this can be done from any supported utility that posts HTTP.

Steps:
  1. Download and install an HTTP post utility.

    You can download cURL from http://curl.haxx.se/download.html. Be sure to download the version appropriate for the operating system where ArcGIS Spatial Data Server is installed.

  2. Add the cURL installation path to the PATH environment variable of the server where ArcGIS Spatial Data Server is installed.
  3. Be sure ArcGIS Spatial Data Server is running, then execute the following command from the command line:
    curl -F "f=pjson" -F "keycodesStream=@C:\Program Files\ESRI\License10.1\sysgen\keycodes" 
    http://localhost:8080/arcgis/admin/authorizeSDS
    

    The command includes the name of the keycodes file (keycodes) that was generated when you ran the software authorization wizard during ArcGIS Spatial Data Server installation.

    A JSON response similar to the following should be received. Note that licenseEdition could be Basic or Standard, depending on the ArcGIS for Server license you used when you ran the software authorization wizard during ArcGIS Spatial Data Server installation.

    {
        "licenseEdition": "Advanced",
        "success": true
    }

8/21/2012