Skip to content

Instantly share code, notes, and snippets.

View ayushmaanbhav's full-sized avatar
👻

Ayush Jain ayushmaanbhav

👻
View GitHub Profile
private static List<String> connectAndReadFromURL(URL url, String fileName)
{
List<String> data = null;
HttpClient httpClient = null;
TrustStrategy easyStrategy = new TrustStrategy()
{
public boolean isTrusted(X509Certificate[] certificate, String authType)
throws CertificateException
{
return true;