@Test // Access https server via socks5 proxy public void testHttpsSocks() throws Exception { testProxy(ProxyType.SOCKS5); }
@Test // Access https server via connect proxy public void testHttpsProxy() throws Exception { testProxy(ProxyType.HTTP); assertEquals("Host header doesn't contain target host", "localhost:4043", proxy.getLastRequestHeaders().get("Host")); assertEquals("Host header doesn't contain target host", HttpMethod.CONNECT, proxy.getLastMethod()); }
@Test // Access https server via socks5 proxy public void testHttpsSocks() throws Exception { testProxy(ProxyType.SOCKS5); }
@Test // Access https server via connect proxy public void testHttpsProxy() throws Exception { testProxy(ProxyType.HTTP); assertEquals("Host header doesn't contain target host", "localhost:4043", proxy.getLastRequestHeaders().get("Host")); assertEquals("Host header doesn't contain target host", HttpMethod.CONNECT, proxy.getLastMethod()); }