apache / apache/jmeter

Java Implementation not sending `Authorization` and `Host` header

Open
#6,303 1 comment 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

I'm using Java implementation because it is faster than HttpClient4. I expected that my headers would be sent independently of the implementation.

### Actual behavior

When I change from HttpClient4 to Java, some headers are not sent.

### Steps to reproduce the problem

## My Config:

![db3d72-e78d2c70-0d6d-4867-b5a7-b9135328de14](https://github.com/apache/jmeter/assets/4665519/c02f1949-d8f4-491a-9ba9-5d36eba10129)

When I run using Java Implementation, the `Authorization` and `Host` header is not sent

![image](https://github.com/apache/jmeter/assets/4665519/9976c7eb-ff11-4e43-88de-3a86e5b5ca13)

When I change from Java to HttpClient4 implementation, `Authorization` and `Host` header is sent

![image](https://github.com/apache/jmeter/assets/4665519/1e889ac0-4b2d-4ea4-afb7-16792e625575)

### JMeter Version

5.6.3

### Java Version

Java(TM) SE Runtime Environment (build 1.8.0_411-b09)

### OS Version

Microsoft Windows [versão 10.0.22631.3737]

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in JMeter 5.6.3 using the Java implementation and the provided configuration, then compare the request headers with the HttpClient4 implementation. Done means the Java implementation sends the configured Authorization and Host headers consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.