A quick and practical guide to adding custom headers to HTTP requests with Java’s HttpClient.
Also find me here:
Baeldung Author
Nam Tien Vu
I have extensive experience in the Java ecosystem and have been working in the field for many years. In my free time, I enjoy playing with cats and exploring the philosophies of Confucianism and Buddhism.
Here's what I've written (so far):
Baeldung on Java
- All
- Algorithms (5)
- Java String (4)
- Java IO (4)
- Security (3)
- Java Numbers (3)
- Java Array (3)
- Spring Data (2)
- Java Concurrency (2)
- Java (2)
- Testing (1)
- Spring (1)
- Persistence (1)
- Networking (1)
- Logging (1)
- Java Web (1)
- Java Streams (1)
- Java List (1)
- Java Dates (1)
- Java Collections (1)
- Jackson (1)
- HTTP Client-Side (1)
Get the ASCII Value of a Character in Java
Filed under Java
A quick and practical guide to getting ASCII value of a char in Java.
Create a Simple “Rock-Paper-Scissors” Game in Java
Filed under Algorithms
A quick example of the Rock-Paper-Scissors implementation in Java.
Convert Between Byte Array and UUID in Java
Filed under Java
A quick and practical conversion guide between byte arrays and UUID.
Computing an X509 Certificate’s Thumbprint in Java
Filed under Security
A quick and practical guide to computing an X509 certificate’s thumbprint in Java.
Use Dot “.” as the Decimal Separator in Java
Filed under Java Numbers
A quick and practical guide to using dot as decimal separator in Java.
Simulate touch Command in Java
Filed under Java IO
A quick and practical guide to mimicking “touch” behavior in Java.
Compare Strings While Ignoring Whitespace in Java
Filed under Java String
Learn different ways to compare strings while ignoring whitespace in Java.
Deserialize Snake Case to Camel Case With Jackson
Filed under Jackson
By default, Jackson expects the field names in JSON to match the ones in our Java POJOs. As Java usually uses camel case field naming by convention, this makes it harder to deserialize snake case JSON. We look at some ways to configure our code so that we can load JSON with other field naming conventions.