Configuring stand-alone Java™ applications to use HTTP/TCP proxy
You can configure a stand-alone Java™ application to use the HTTP/TCP proxy by changing the HTTP properties for the application.
Procedure
-
Edit the invocation command line or the
system properties within the Java™ application
to modify the HTTP proxy properties as follows:
-Dhttp.proxyHost=host_name -Dhttp.proxyPort=port_number
- host_name
- The host name or IP address of the HTTP/TCP proxy
- port_number
- The port number that was specified during the installation of HCL Quality Server or specified in the registration.xml file, such as 3128
-
If the server application and a Java-based client are on
the same machine, an additional property is required.
The JRE considers the use of a proxy for localhost traffic to be a security risk, so you must remove localhost from the internal list of servers that are not allowed to have proxies. Use one of the following property settings:For Java7:
-Dhttp.nonProxyHosts=
For Java6:-Dhttp.nonProxyHosts=~localhost
-
Restart the application.
Note: If you are setting up a HTTP/TCP proxy to provide support for HTTPS, the property names begin with
https
rather thanhttp
. For example, with HTTPS support, usehttps.proxyHost
.