Created
February 3, 2019 14:36
-
-
Save philwo/60211bf88bd3d2c0b9939433db1e886d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java_binary( | |
name = "repro", | |
main_class = "Repro", | |
srcs = ["Repro.java"], | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.URL; | |
import javax.net.ssl.HttpsURLConnection; | |
public class Repro { | |
public static void main(String[] args) throws Exception { | |
URL url = new URL("https://github.com"); | |
HttpsURLConnection con = (HttpsURLConnection) url.openConnection(); | |
System.out.println(con.getContent()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Empty. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment