8056065: sun/net/www/protocol/http/RedirectOnPost.java failing
Reviewed-by: alanb
This commit is contained in:
parent
27d481fa82
commit
6f990e0e65
@ -23,7 +23,9 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @compile ../../../../../com/sun/net/httpserver/SimpleSSLContext.java RedirectOnPost.java
|
* @library /lib/testlibrary/
|
||||||
|
* @build jdk.testlibrary.SimpleSSLContext
|
||||||
|
* @compile RedirectOnPost.java
|
||||||
* @run main/othervm RedirectOnPost
|
* @run main/othervm RedirectOnPost
|
||||||
* @bug 8029127
|
* @bug 8029127
|
||||||
* @summary A redirect POST request does not work and illegalStateException on HttpURLConnection.getInputStream
|
* @summary A redirect POST request does not work and illegalStateException on HttpURLConnection.getInputStream
|
||||||
@ -35,15 +37,14 @@ import java.util.*;
|
|||||||
import com.sun.net.httpserver.*;
|
import com.sun.net.httpserver.*;
|
||||||
import java.util.concurrent.*;
|
import java.util.concurrent.*;
|
||||||
import javax.net.ssl.*;
|
import javax.net.ssl.*;
|
||||||
|
import jdk.testlibrary.SimpleSSLContext;
|
||||||
|
|
||||||
public class RedirectOnPost {
|
public class RedirectOnPost {
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
ExecutorService e= Executors.newFixedThreadPool(5);
|
ExecutorService e= Executors.newFixedThreadPool(5);
|
||||||
String keysdir = System.getProperty("test.src")
|
SSLContext ctx = new SimpleSSLContext().get();
|
||||||
+ "/../../../../../com/sun/net/httpserver/";
|
|
||||||
SSLContext ctx = new SimpleSSLContext(keysdir).get();
|
|
||||||
HttpServer httpServer = getHttpServer(e);
|
HttpServer httpServer = getHttpServer(e);
|
||||||
HttpsServer httpsServer = getHttpsServer(e, ctx);
|
HttpsServer httpsServer = getHttpsServer(e, ctx);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user