Skip to content

Connecting via a Proxy Server

Michael Uzquiano edited this page Mar 10, 2016 · 1 revision

As of version 1.0.13 of the driver, support for HTTP and HTTPS proxies is explicitly handled as opposed to relying on the underlying Apache HttpComponents library.

Typically, the baseUrl for connections to Cloud CMS is https://api.cloudcms.com which is an HTTPS connection. If you have a proxy server set up (such as Squid), set the following System properties to utilize the proxy:

https.proxyHost
https.proxyPort

This can either be done in code through any mechanism you choose or it can also be passed in to the JVM when starting your program or app server. For example:

   -Dhttps.proxyHost=myproxy.com -Dhttps.proxyPort=80

Similarly, if you're connecting to an HTTP endpoint (such as your own Docker-based installation of the Cloud CMS API), you can utilize the following System properties:

http.proxyHost
http.proxyPort

These conventions are intended to mirror what the Java .net libraries provide by out-of-the-box.

Clone this wiki locally