Skip to content

Conversation

@naofum
Copy link

@naofum naofum commented May 19, 2017

When set proxy runtime environment in configuration of Project Settings,
enable proxy to request rest service.

use Extra JVM Parameters: -Dhttp.proxyHost= -Dhttp.proxyPort=

else if (request instanceof PutMethod && requestEntity != null)
((PutMethod)request).setRequestEntity(requestEntity);

if ((System.getProperty("http.proxyHost") != null) && (!"".equals(System.getProperty("http.proxyHost")))) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only for http proxys, not https?
Also, given that Commons Lang is already a dependency, consider using StringUtils.isEmpty().

@naofum
Copy link
Author

naofum commented May 22, 2017

setProxy() of HttpClient 3.1 enables both http and https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants