mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			628 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			628 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| public class Alpine_Bug_10126 {
 | |
|     public static void main(String[] args) throws Exception {
 | |
|         try (java.net.Socket sock = javax.net.ssl.SSLSocketFactory.getDefault().createSocket("gitlab.alpinelinux.org", 443);
 | |
|              java.io.InputStream in = sock.getInputStream();
 | |
|              java.io.OutputStream out = sock.getOutputStream()) {
 | |
|             out.write("GET / HTTP/1.0\n\nHost: gitlab.alpinelinux.org\n\nConnection: close\n\n\n\n".getBytes());
 | |
|             out.flush();
 | |
|             while (in.read(new byte[1024]) != -1) ;
 | |
|         }
 | |
|         System.out.println("Secured connection performed successfully");
 | |
|     }
 | |
| }
 | |
| 
 |