apache / apache/jmeter

Can't add fields to Multipart body headers

Open
#2,398 2 comments 1 reaction 0 assignees View on GitHub
enhancement os: Windows P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**Romuald** ([Bug 49949](https://bz.apache.org/bugzilla//show_bug.cgi?id=49949&redirect=false)):
When using the HTTPClient tool, we can attach a file or many and name it but in some occasions we would be interested in adding header aside from the usual Content-Disposition and Content-Type, Content-Transfer-Encoding.

Some applications like SAP with their Archivelink HTTP interface are adding fields there (X-compId as an example).

Therefore for such applications it is not possible to simulate a file upload with a POST request as the backend webserver is not able to manage it (doesn't receive the missing header field).

In the attached screenshot I have highlighted in yellow the piece that I would like to configure the same way we can do with the HeaderManager for example.

Hope I didn't use bugzilla by mistake as I didn't find another location to post this enhancement request. If it is the case I am more than happy to post it at the right place.

Thanks.

Created attachment [Capture.JPG](https://apache.github.io/jmeter-bugzilla-attachments/49/49949/26041/Capture.JPG): Screenshot of a HTTP Request dump with MS NETMON 3.3

Screenshot of a HTTP Request dump with MS NETMON 3.3

OS: Windows Vista

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by locating the HTTP Request multipart handling and compare it with HeaderManager configuration; done means allowing extra per-part headers such as X-compId and confirming that they are included in the multipart POST.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.