This file contains hidden or 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
{ | |
"after": 1543405104.105311400, | |
"before": 1545997104.105311400, | |
"indexerApiAccessStats": [ | |
{ | |
"indexerName": "omgwtfnzbs", | |
"percentSuccessful": 99.98197223724536, | |
"percentConnectionError": 0.01802776275464215, | |
"averageAccessesPerDay": 178.93548387096774 | |
}, |
This file contains hidden or 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
@Test | |
public void connectToAlthub() throws Exception { | |
OkHttpClient client = new OkHttpClient(); | |
Request request = new Request.Builder() | |
.url("https://api.althub.co.za") | |
.build(); | |
Response response = client.newCall(request).execute(); | |
assertTrue(response.isSuccessful()); |
This file contains hidden or 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
package org.nzbhydra.indexers; | |
import okhttp3.OkHttpClient.Builder; | |
import okhttp3.Request; | |
import org.junit.Ignore; | |
import org.junit.Test; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLSocketFactory; | |
import javax.net.ssl.TrustManager; |