Snippets tagged “httpclient”
2 snippets use this tag.
- Accept server's self-signed ssl certificate in Java clientJava
To accept a server's self-signed SSL certificate in a Java client, you can create a custom javax.net.ssl.X509TrustManager and use it to override the default trust manager.
- Get a JSON object from a HTTP responseJava
To get a JSON object from a HTTP response in Java, you can use the JSONObject class from the org.json library.