Skip to content
Snippets Groups Projects
Commit 4543a8a7 authored by Roger W Feese's avatar Roger W Feese
Browse files

Initial commit.

parents
No related branches found
No related tags found
No related merge requests found
*.class
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
public class HttpsTest{
public static void main(String [] args){
//System.out.println(args[0]);
try{
URL sandbox = new URL(args[0]);
URLConnection c = sandbox.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(c.getInputStream()));
String inputLine;
while((inputLine = in.readLine()) != null){
System.out.println(inputLine);
}
in.close();
}catch(Exception e){
System.err.println(e.getMessage());
}
}
}
README 0 → 100644
Test java https connection to host. This may be useful in tracking down Java
SSL compatibility problems.
Build:
java -c HttpsTest.java
Run:
./https_test (HTTPS URL)
If connection is successful, response is printed.
#!/bin/sh
java -Djava.net.debug=all -cp . HttpsTest "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment