You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2019/12/17 11:22:22 UTC
[Bug 64010] New: HttpCLient4 adds default header that can not be
easly removed. (Java does not)
https://bz.apache.org/bugzilla/show_bug.cgi?id=64010
Bug ID: 64010
Summary: HttpCLient4 adds default header that can not be easly
removed. (Java does not)
Product: JMeter
Version: 5.2.1
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: szuther@dualis-it.de
Target Milestone: JMETER_5.2
Created attachment 36919
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36919&action=edit
Test + pics
httpClient4 adds
"Content-Type: application/x-www-form-urlencoded; charset=UTF-8"
(and other Header, see attached pics) for POST requests even if i don’t have
specified any Header for that request,
Content-Type is unnecessary for a post without a Body.
The Server don’t except "application/x-www-form-urlencoded" as Content-Type and
the Request will fail.
The Server would accept a request without Content-Type header.
The Java implementation does that not.
Its not good to have these completely different behaviour and there is no
(easy?) way to send a POST request without the Content-Type Header with
httpClient4.
In the attachment is the simple POST test without defined header and images of
the sent request headers with java and httpclient4 implementation
--
You are receiving this mail because:
You are the assignee for the bug.