Open honwhy opened 2 years ago
I have forked your project, and now I'm doing some testing Test Code
@Test public void test_over_http_proxy() throws IOException { FTPHTTPClient client = new FTPHTTPClient("127.0.0.1", proxyPort); //client.setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", proxyPort))); client.setConnectTimeout(3000); client.connect("127.0.0.1", ftpPort); client.getReplyCode(); Assert.assertTrue(client.isConnected()); client.disconnect(); }
maven
<dependency> <groupId>commons-net</groupId> <artifactId>commons-net</artifactId> <version>3.6</version> </dependency>
我debug跟踪了下,connect请求有正确处理的,但是没有见到流量转发请求
实现的是标准的http代理协议,应该是支持的啊
I have forked your project, and now I'm doing some testing Test Code
maven
我debug跟踪了下,connect请求有正确处理的,但是没有见到流量转发请求