Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS proxy support #135

Open
githubmicrob opened this issue Dec 13, 2024 · 0 comments
Open

HTTPS proxy support #135

githubmicrob opened this issue Dec 13, 2024 · 0 comments

Comments

@githubmicrob
Copy link

General information

  • SDK/Library version: All versions
  • Environment: Sandbox and Production
  • Language, language version, and OS: Java 17

Issue description

Currently, Braintree SDK uses java.net.URL, java.net.HttpURLConnection, and javax.net.ssl.HttpsURLConnection classes as HTTP client. Unfortunately, those classes don't support HTTPS proxies. Please take a look at the example project that I've prepared here.

The example project demonstrates how different HTTP clients interact with an HTTPS proxy. It sets up an Apache HTTP Server as a proxy and provides example test cases for two different HTTP clients. Apache HTTP client works correctly via both HTTP and HTTPS ports, while Java one works correctly only via HTTP port.

I've prepared PR that makes HTTP client implementation in Braintree SDK configurable. Please take a look at it here.

In our case, HTTPS proxy is the recommended way of integration with our tokenization provider. Other Braintree clients may benefit from it as well.

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

No branches or pull requests

1 participant