15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 //
25 // SunJSSE does not support dynamic system properties, no way to re-use
26 // system properties in samevm/agentvm mode.
27 //
28
29 /*
30 * @test
31 * @bug 6216082
32 * @summary Redirect problem with HttpsURLConnection using a proxy
33 * @modules java.base/sun.net.www
34 * @library .. /test/lib
35 * @build HttpCallback TestHttpsServer ClosedChannelList
36 * HttpTransaction TunnelProxy
37 * @key intermittent
38 * @run main/othervm B6216082
39 */
40
41 import java.io.*;
42 import java.net.*;
43 import javax.net.ssl.*;
44 import java.util.*;
45
46 import jdk.test.lib.NetworkConfiguration;
47
48 public class B6216082 {
49 static SimpleHttpTransaction httpTrans;
50 static TestHttpsServer server;
51 static TunnelProxy proxy;
52
53 // it seems there's no proxy ever if a url points to 'localhost',
54 // even if proxy related properties are set. so we need to bind
55 // our simple http proxy and http server to a non-loopback address
|
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 //
25 // SunJSSE does not support dynamic system properties, no way to re-use
26 // system properties in samevm/agentvm mode.
27 //
28
29 /*
30 * @test
31 * @bug 6216082
32 * @summary Redirect problem with HttpsURLConnection using a proxy
33 * @modules java.base/sun.net.www
34 * @library .. /test/lib
35 * @build jdk.test.lib.NetworkConfiguration
36 * jdk.test.lib.Utils
37 * jdk.test.lib.Asserts
38 * jdk.test.lib.JDKToolFinder
39 * jdk.test.lib.JDKToolLauncher
40 * jdk.test.lib.Platform
41 * jdk.test.lib.process.*
42 * HttpCallback TestHttpsServer ClosedChannelList
43 * HttpTransaction TunnelProxy
44 * @key intermittent
45 * @run main/othervm B6216082
46 */
47
48 import java.io.*;
49 import java.net.*;
50 import javax.net.ssl.*;
51 import java.util.*;
52
53 import jdk.test.lib.NetworkConfiguration;
54
55 public class B6216082 {
56 static SimpleHttpTransaction httpTrans;
57 static TestHttpsServer server;
58 static TunnelProxy proxy;
59
60 // it seems there's no proxy ever if a url points to 'localhost',
61 // even if proxy related properties are set. so we need to bind
62 // our simple http proxy and http server to a non-loopback address
|