Simple GET request using SSL certificate and HTTPS
Never
//Simple GET request using SSL certificate and HTTPS String getHttpResponseWithSSL(String url) throws Exception { //default truststore parameters System.setProperty("javax.net.ssl.trustStore", "/usr/lib/jvm/java-6-openjdk/jre/lib/securitycacerts"); System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); System.setProperty("javax.net.ssl.trustStoreType", "JKS"); //my certificate and password System.setProperty("javax.net.ssl.keyStore", "mycert.pfx"); System.setProperty("javax.net.ssl.keyStorePassword", "mypass"); System.setProperty("javax.net.ssl.keyStoreType", "PKCS12"); HttpClient httpclient = new HttpClient(); GetMethod method = new GetMethod(); method.setPath(url); int statusCode = httpclient.executeMethod(method); System.out.println("Status: " + statusCode); method.releaseConnection(); retun method.getResponseBodyAsString(); }
Raw Text
-
Tina Kay has her sights set on an athlete
7 min ago
-
suskreb
10 min ago
-
Spanish Babe Arteya Gets Ready For Consoling Threeway With Sicilia & Her Boyfriend - VIP SEX VAU
32 min ago
-
pejjjjjjj1
46 min ago
-
https://www.facebook.com/MakersCBDGummies/
56 min ago
-
Untitled
1 hour ago
-
Hottie get hardcore fucked by grandpa on the couch and she swallows his jizz
1 hour ago
-
directions
JavaScript | 1 hour ago
-
Untitled
1 hour ago
-
Fucking my stepsister while she plays video games / Dolly Rud
1 hour ago