equal
deleted
inserted
replaced
36 import java.net.InetAddress; |
36 import java.net.InetAddress; |
37 import java.net.ServerSocket; |
37 import java.net.ServerSocket; |
38 import java.net.Socket; |
38 import java.net.Socket; |
39 import java.net.URL; |
39 import java.net.URL; |
40 import java.net.HttpURLConnection; |
40 import java.net.HttpURLConnection; |
41 |
|
42 import jdk.test.lib.net.URIBuilder; |
41 import jdk.test.lib.net.URIBuilder; |
|
42 import static java.net.Proxy.NO_PROXY; |
43 |
43 |
44 public class HttpContinueStackOverflow { |
44 public class HttpContinueStackOverflow { |
45 |
45 |
46 static class Server implements Runnable { |
46 static class Server implements Runnable { |
47 ServerSocket serverSock ; |
47 ServerSocket serverSock ; |
91 .loopback() |
91 .loopback() |
92 .port(s.getLocalPort()) |
92 .port(s.getLocalPort()) |
93 .path("/anything.html") |
93 .path("/anything.html") |
94 .toURL(); |
94 .toURL(); |
95 |
95 |
96 HttpURLConnection conn = (HttpURLConnection)url.openConnection(); |
96 HttpURLConnection conn = (HttpURLConnection)url.openConnection(NO_PROXY); |
97 conn.getResponseCode(); |
97 conn.getResponseCode(); |
98 System.out.println("TEST PASSED"); |
98 System.out.println("TEST PASSED"); |
99 } |
99 } |
100 |
100 |
101 public static void main(String args[]) throws Exception { |
101 public static void main(String args[]) throws Exception { |