Skip to content

Instantly share code, notes, and snippets.

View hgomez-sonarsource's full-sized avatar

Henri Gomez hgomez-sonarsource

View GitHub Profile
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.cert.Certificate;
public class HttpsClient {
@hgomez-sonarsource
hgomez-sonarsource / curl-freestyle-color.sh
Created September 30, 2015 12:04
sample bash script using curl and ansi color code to be used with Jenkins Ansi Color Plugin
#!/bin/sh
REST_URLS=$(echo $REST_URL_LIST | tr " " "\n")
if [ "$VERBOSE_CURL" = "true" ]; then
CURL_OPTS="-v"
fi
for REST_URL in $REST_URLS
do