How to do Basic Authentication with the Spring RestTemplate.
Also find me here:
Baeldung Author
Eugen Paraschiv
I’m a software engineer with a passion for REST, TDD and clean code, Web Security and Data Mining. Baeldung is about all of these and more.
Here's what I've written (so far):
Baeldung on Java
- All
- Weekly Review (152)
- Spring (33)
- Spring Security (29)
- REST (23)
- Java IO (22)
- HTTP Client-Side (20)
- Jackson (17)
- Data (17)
- Java Collections (12)
- Java (9)
- Testing (8)
- Spring MVC (7)
- Maven (7)
- Spring Persistence (6)
- Persistence (6)
- Java List (6)
- JPA (6)
- Java String (5)
- Spring Web (4)
- Spring Boot (4)
- Spring Data (3)
- JSON (3)
- Security (2)
- Meta (2)
- Java Map (2)
- Java Array (2)
- Cloud (2)
- News (1)
- Java Numbers (1)
- Java Concurrency (1)
- IDE (1)
- Core Java (1)
- Artificial Intelligence (1)
- Architecture (1)
The Baeldung Weekly Review 7
Filed under Weekly Review
Quite some useful articles this week – and a few must reads, if you’re doing any non-trivial development.
The Baeldung Weekly Review 6
Filed under Weekly Review
Another great set of articles out in the 2nd week of February – covering the whole spectrum – Security, Performance testing, patterns and a few other subjects.
The Baeldung Weekly Review 5
Filed under Weekly Review
Week 5 review – really good articles on HTTP and REST this week, among other things.
Apache HttpClient Basic Authentication
Filed under HTTP Client-Side
Do Basic Authentication with the HttpClient 4 – simple usecase, preemptive auth and how to manually set the Authorization header.
The Baeldung Weekly Review 4
Filed under Weekly Review
Some great Spring, Security and REST articles from the 4th week of 2014.
Custom HTTP Header with the Apache HttpClient
Filed under HTTP Client-Side
How to set a custom header on one/all requests sent via the HttpClient 4.
The Baeldung Weekly Review 3
Filed under Weekly Review
Some great Spring, Security and REST articles from the 3rd week of 2014.
The Baeldung Weekly Review 2
Filed under Weekly Review
My takeaways from the 2nd week of 2014.