How To Get HTTP Request Header In Java
This example shows you how to get the HTTP request headers in Java. To get the HTTP request headers, you need this class HttpServletRequest : 1. HttpServletRequest Examples 1.1 Loop…
How to get HTTP Response Header in Java
This example shows you how to get the Http response header values in Java. 1. 1. URLConnection - Standard JDK example. 2. Apache HttpClient example.
Java SSLSocket TLS 1.3 example
This Java 11 JEP 332 adds support for TLS 1.3 protocol. This article will demo for An SSLSocket client with TLS1.3 protocol and TLS_AES_128_GCM_SHA256 stream cipher, to send a request…
Java Whois example
In this tutorial, we will show you how to use Java library – “Apache Commons Net” to get WHOIS data of a domain.
Java HttpURLConnection follow redirect example
The HttpURLConnection‘s follow redirect is just an indicator, in fact it won’t help you to do the “real” http redirection, you still need to handle it manually.
How to automate login a website – Java example
In this example, we will show you how to login a website via standard Java HttpsURLConnection. This technique should be working in most of the login form. Tools & Java…
Java HttpsURLConnection example
Here’s a simple Java HTTPS client to demonstrate the use of HttpsURLConnection class to send a HTTP GET request yo get the https URL content and certificate detail.
Java JSON Tutorials
JSON (JavaScript Object Notation) is a simple, lightweight and easy to read and write data exchange formats. In Java, normally we use Jackson or Gson to parse JSON.
Java 11 HttpClient Examples
This article shows you how to use the new Java 11 HttpClient APIs to send HTTP GET/POST requests, and some frequent used examples.
OkHttp – How to send HTTP requests
This article shows you how to use the OkHttp library to send an HTTP GET/POST requests and some frequent used examples.