[HtmlUnit] [htmlunit:bugs] #1960 Authenticated SOCKS5 with username/password does not work

RBRi via HtmlUnit-develop <[email protected]> Sat, 30 Oct 2021 11:10:27 -0000
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID </p/htmlunit/bugs/1960/9656368ddc2146f373eddd7453ddbc0af4c1a54e.bugs@htmlunit.p.sourceforge.net>
This is a multi-part message in MIME format.
--===============8273927820040710635==
Content-Type: multipart/related; boundary="===============7872689606636923665=="

This is a multi-part message in MIME format.
--===============7872689606636923665==
Content-Type: multipart/alternative; boundary="===============7984519395599724584=="
MIME-Version: 1.0

--===============7984519395599724584==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

- **status**: open --> closed
- **assigned_to**: RBRi
- **Comment**:

see https://github.com/HtmlUnit/htmlunit/issues/394



---

** [bugs:#1960] Authenticated SOCKS5 with username/password does not work**

**Status:** closed
**Group:** 2.30
**Labels:** socks socks5 authentication 
**Created:** Tue Apr 03, 2018 07:27 AM UTC by Rahul Vaidya
**Last Updated:** Sat Jul 21, 2018 04:08 PM UTC
**Owner:** RBRi


I am using this to set up my proxy connection:

client.getOptions().setProxyConfig(new ProxyConfig(host, port, true));
DefaultCredentialsProvider credentialsProvider = (DefaultCredentialsProvider) client.getCredentialsProvider();
        credentialsProvider.addCredentials(username, password);
        
When I try to connect I get this:

[main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://checkip.amazonaws.com:80: SOCKS : authentication failed
[main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://checkip.amazonaws.com:80
[main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://checkip.amazonaws.com:80: SOCKS : authentication failed
[main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://checkip.amazonaws.com:80
[main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://checkip.amazonaws.com:80: SOCKS : authentication failed
[main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://checkip.amazonaws.com:80
Error getting web client IP address
java.net.SocketException: SOCKS : authentication failed
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:473)
	at java.net.Socket.connect(Socket.java:589)
	at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
	at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1401)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1319)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:394)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:315)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:463)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:448)


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
--===============7984519395599724584==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><ul>
<li><strong>status</strong>: open --&gt; closed</li>
<li><strong>assigned_to</strong>: RBRi</li>
<li><strong>Comment</strong>:</li>
</ul>
<p>see <a href="https://github.com/HtmlUnit/htmlunit/issues/394" rel="nofollow">https://github.com/HtmlUnit/htmlunit/issues/394</a></p>
<hr/>
<p><strong> <a class="alink strikethrough" href="https://sourceforge.net/p/htmlunit/bugs/1960/">[bugs:#1960]</a> Authenticated SOCKS5 with username/password does not work</strong></p>
<p><strong>Status:</strong> closed<br/>
<strong>Group:</strong> 2.30<br/>
<strong>Labels:</strong> socks socks5 authentication <br/>
<strong>Created:</strong> Tue Apr 03, 2018 07:27 AM UTC by Rahul Vaidya<br/>
<strong>Last Updated:</strong> Sat Jul 21, 2018 04:08 PM UTC<br/>
<strong>Owner:</strong> RBRi</p>
<p>I am using this to set up my proxy connection:</p>
<p>client.getOptions().setProxyConfig(new ProxyConfig(host, port, true));<br/>
DefaultCredentialsProvider credentialsProvider = (DefaultCredentialsProvider) client.getCredentialsProvider();<br/>
        credentialsProvider.addCredentials(username, password);</p>
<p>When I try to connect I get this:</p>
<p><span>[main]</span> INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}-&gt;http://checkip.amazonaws.com:80: SOCKS : authentication failed<br/>
<span>[main]</span> INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}-&gt;http://checkip.amazonaws.com:80<br/>
<span>[main]</span> INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}-&gt;http://checkip.amazonaws.com:80: SOCKS : authentication failed<br/>
<span>[main]</span> INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}-&gt;http://checkip.amazonaws.com:80<br/>
<span>[main]</span> INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}-&gt;http://checkip.amazonaws.com:80: SOCKS : authentication failed<br/>
<span>[main]</span> INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {}-&gt;http://checkip.amazonaws.com:80<br/>
Error getting web client IP address<br/>
java.net.SocketException: SOCKS : authentication failed<br/>
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:473)<br/>
    at java.net.Socket.connect(Socket.java:589)<br/>
    at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)<br/>
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)<br/>
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)<br/>
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)<br/>
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)<br/>
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)<br/>
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)<br/>
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)<br/>
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)<br/>
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)<br/>
    at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192)<br/>
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1401)<br/>
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1319)<br/>
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:394)<br/>
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:315)<br/>
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:463)<br/>
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:448)</p>
<hr/>
<p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/htmlunit/bugs/">https://sourceforge.net/p/htmlunit/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/htmlunit/admin/bugs/options.">https://sourceforge.net/p/htmlunit/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>
--===============7984519395599724584==--

--===============7872689606636923665==--


--===============8273927820040710635==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============8273927820040710635==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop

--===============8273927820040710635==--