google-cloud-java icon indicating copy to clipboard operation
google-cloud-java copied to clipboard

Java http.* proxy flags ignored

Open rnaval opened this issue 2 years ago • 1 comments

Environment details

  1. OS type and version: CentOS Linux 7 (Core)
  2. Java version: JDK11
  3. Version(s):
        <groupId>com.google.cloud</groupId>
        <artifactId>libraries-bom</artifactId>
        <version>26.25.0</version>

Steps to reproduce

  1. Run your java application with the following flags for example: java -Dhttp.proxyHost=webcache.mydomain.com -Dhttp.proxyPort=8080 <APP_NAME>

Note: HTTPS proxies seem to work fine. E.g: java -Dhttps.proxyHost=webcache.mydomain.com -Dhttps.proxyPort=8080 <APP_NAME>

Are http.* flags being ignored expected?

rnaval avatar Nov 08 '23 06:11 rnaval

@rnaval I think this is expected. The Google Cloud client libraries use HTTPS and gRPC under the hood to communicate with services so as described by this section in the README configuring proxies is generally done through https.proxyHost or https.proxyPort.

mpeddada1 avatar May 09 '24 14:05 mpeddada1

Ok thanks - closing this issue

rnaval avatar May 13 '24 14:05 rnaval