Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

No way to configure Proxy-server (with authentication) for http.client #584

Open
qdzo opened this issue Jun 14, 2016 · 0 comments
Open

No way to configure Proxy-server (with authentication) for http.client #584

qdzo opened this issue Jun 14, 2016 · 0 comments

Comments

@qdzo
Copy link

qdzo commented Jun 14, 2016

Working with http.client i can't find any way to configure proxy-server.(authentication also needed)

I found only java solution like

Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("10.0.0.1", 8080));
conn = new URL(urlString).openConnection(proxy);

    Authenticator authenticator = new Authenticator() {

        public PasswordAuthentication getPasswordAuthentication() {
            return (new PasswordAuthentication("user",
                    "password".toCharArray()));
        }
    };
    Authenticator.setDefault(authenticator);
@FroMage FroMage added this to the 1.2.3 milestone Jun 14, 2016
@FroMage FroMage self-assigned this Jun 14, 2016
@FroMage FroMage modified the milestones: 1.3.0, 1.3.5 Sep 2, 2016
@quintesse quintesse modified the milestones: 1.3.1, 1.3.2 Nov 19, 2016
@quintesse quintesse modified the milestones: 1.3.2, 1.3.3 Mar 3, 2017
@FroMage FroMage modified the milestones: 1.3.3, 1.4.0 beta Sep 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants