Skip to content

severedsea/proxy-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem

Spring boot application (behind corporate proxy) using Apache HTTPClient could not access the internet even with http_proxy and https_proxy configured

Solution

Use HTTPClient's HttpClientBuilder.create().useSystemProperties() to apply system properties such as proxy configuration

Test

Once Spring Boot application is ran (i.e. ./gradlew bootRun or java -jar app.jar), the POC application will invoke two HTTP requests to the defined URL, one without useSystemProperties and one using the said solution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages