maxbobse opened a new issue, #5735:
URL: https://github.com/apache/hop/issues/5735
### Apache Hop version?
2.15.0
### Java version?
21.0.3
### Operating system
Windows
### What happened?
I have rebuilt a PDI Transformation that is using the HTTP Post step, While
testing it in Hop, the request always failed with an HTTP 500 error while it
was working fine in PDI.
I have compared how Hop is sending the data to the server compared to PDI
and I think I found the issue: even if 'Post a file' is disabled, Hop is still
sending the file content as Form in the request.
Below a working example from PDI:
```
[26-Sep-2025 12:19:44 Europe/Berlin] Content-Type: application/moca-xml
[26-Sep-2025 12:19:44 Europe/Berlin] Content-Length: 213
[26-Sep-2025 12:19:44 Europe/Berlin] Host: localhost
[26-Sep-2025 12:19:44 Europe/Berlin] Connection: Keep-Alive
[26-Sep-2025 12:19:44 Europe/Berlin] User-Agent: Apache-HttpClient/4.5.9
(Java/21.0.3)
[26-Sep-2025 12:19:44 Europe/Berlin] Accept-Encoding: gzip,deflate
[26-Sep-2025 12:19:44 Europe/Berlin] <moca-request autocommit="True">
<environment>
<var name="USR_ID" value="john.doe"/>
</environment>
<query>login user where usr_id = 'john.doe' and usr_pswd = 'abc'</query>
</moca-request>
```
and here the example from Hop
```
[26-Sep-2025 12:18:50 Europe/Berlin] Content-Type: application/moca-xml
[26-Sep-2025 12:18:50 Europe/Berlin] Content-Length: 443
[26-Sep-2025 12:18:50 Europe/Berlin] Host: localhost
[26-Sep-2025 12:18:50 Europe/Berlin] Connection: Keep-Alive
[26-Sep-2025 12:18:50 Europe/Berlin] User-Agent: Apache-HttpClient/4.5.13
(Java/21.0.3)
[26-Sep-2025 12:18:50 Europe/Berlin] Accept-Encoding: gzip,deflate
[26-Sep-2025 12:18:50 Europe/Berlin] --iYWi_gebOFr9Z0rmQxhzKi84H7l3dhn-fzQ0l
Content-Disposition: form-data; name="file"; filename="login.xml"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
<moca-request autocommit="True">
<environment>
<var name="USR_ID" value="john.doe"/>
</environment>
<query>login user where usr_id = 'john.doe' and usr_pswd = 'abc'</query>
</moca-request>
--iYWi_gebOFr9Z0rmQxhzKi84H7l3dhn-fzQ0l--
```
HTTP Post configuration
<img width="656" height="702" alt="Image"
src="https://github.com/user-attachments/assets/340f060f-7ba2-4773-8260-3f95be411639"
/>
### Issue Priority
Priority: 3
### Issue Component
Component: Actions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]