void OEAddLicenseFromHttp(java.net.URL url)

License the current process with a license file retrieved from an HTTP or HTTPS request. The following caveats apply:

  • There is no proxy support.
  • The request has a 10 second time out.
  • Content-type must be “text/plain”
  • An exception will be thrown if the server does not return status 200 (success) with the contents of a valid oe_license.txt file.

An example of setting the license:

        oechem.OEAddLicenseFromHttp(new URL("http://localhost:8000/oe_license.txt"));

See also

An example of a python http license server is available here: https://github.com/oess/HttpLicenseServer