< prev index next >

test/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java

Print this page
rev 17324 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke
rev 17325 : imported patch 8181761-1


  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.Platform
  37  *        HttpCallback TestHttpsServer ClosedChannelList
  38  *        HttpTransaction TunnelProxy
  39  * @key intermittent
  40  * @run main/othervm B6216082
  41  */
  42 
  43 import java.io.*;
  44 import java.net.*;
  45 import javax.net.ssl.*;
  46 import java.util.*;
  47 
  48 import jdk.test.lib.NetworkConfiguration;
  49 
  50 public class B6216082 {
  51     static SimpleHttpTransaction httpTrans;
  52     static TestHttpsServer server;
  53     static TunnelProxy proxy;
  54 
  55     // it seems there's no proxy ever if a url points to 'localhost',
  56     // even if proxy related properties are set. so we need to bind
  57     // our simple http proxy and http server to a non-loopback address


< prev index next >