apache / apache/jmeter

Recorder does not capture POST request as submitted.

Open
#6,032 7 comments 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

When using the recorder and the localhost proxy to capture normal trafic flow, the POST request recorded and passed on should be unaltered:

```
-----------------------------41691790316285946593014481764
Content-Disposition: form-data; name="imagefile"; filename=""
Content-Type: application/octet-stream

-----------------------------41691790316285946593014481764
```

### Actual behavior

An empty input field for a submission, in this case a file upload, is trimmed somewhat:

```
--awqbkPPRssLNd_sGDI4M8sD3AIl-MeCoVph
Content-Disposition: form-data; name="imagefile"

--awqbkPPRssLNd_sGDI4M8sD3AIl-MeCoVph
```
Which is interpreted as a normal parameter of content-type application/octet-stream in the resulting HTTP request generated by the recording:
![image](https://github.com/apache/jmeter/assets/9601203/54c2accd-bda6-43ba-9832-5999fb0ed9dc)

### Steps to reproduce the problem

Add a file input to a submision form, but submit withouth selecting a file:
```

```

### JMeter Version

5.6

### Java Version

Java(TM) SE Runtime Environment (build 16.0.1+9-24)

### OS Version

Microsoft Windows [Version 10.0.22621.1848]md

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.