Bug 60424

Summary: Hessian Burlap application : JMeter inserts 0x0D before 0x0A automatically (http binary post data)
Product: JMeter - Now in Github Reporter: Niki Mouse <nminfo55-jmeter>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 3.0   
Target Milestone: JMETER_5.1   
Hardware: PC   
OS: All   

Description Niki Mouse 2016-11-27 21:38:49 UTC
Hi,
I like to work with JMeter and I like to get more and more experiences, too.
At the moment I want to do a load test with JMeter on http-protocol combined with binary data. The application communicates via http Hessian protocol (a binary data stream over http).

protocol: http binary content; Content-Type: x-application/hessian

Test-Setup:
- java application (app) with proxy setting: port 8888 
- JMeter started with proxy setting: port 9000
- Fiddler started with sniffing at port 9000
- JMeter recorder with port = 8888

steps:
1. start Fiddler
2. start JMeter with proxy settings and prepare workbench with recorder setting: port = 8888
3. start application 
4. take an action "A"
5. play recorded request (without saving the project)
6. compare the post data of http-requests of step 4 and 5 with Fiddler

actual result:
- there are additional Bytes when JMeter plays the request
- especially: 0x0D is inserted before 0x0A
  i.a.: recorded part: 0x93, 0x0A, 0x6D
        played part  : 0x93, 0x0D, 0x0A, 0x6D
  i.a.: recorded part: 0x64, 0x0A, 0x6D
        played part  : 0x64, 0x0D, 0x0A, 0x6D
  i.a.: recorded part: 0x6E, 0x0A, 0x70
        played part  : 0x6E, 0x0D, 0x0A, 0x70

  
expected result:
- there is no modification of the binary stream

It seems that there is a difference between recording and replay of recorded data. With that behaviour (post data modification) I can't use JMeter and I have to look for other tools.

Regards,
Niko
PS: I can't attach files, because I use it at as a proof of concept at customer side.
--------------------------------

JMeter: Version 3.0 r1743807
Java: java.version=1.8.0_101
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
os: Microsoft Windows 10
os.arch=amd64
os.version: 10.0.14393
-------------------------------
Comment 1 Philippe Mouawad 2018-10-28 21:10:25 UTC
Author: pmouawad
Date: Sun Oct 28 21:10:03 2018
New Revision: 1845065

URL: http://svn.apache.org/viewvc?rev=1845065&view=rev
Log:
Bug 60424 - Hessian Burlap application : JMeter inserts 0x0D before 0x0A automatically (http binary post data)
Bugzilla Id: 60424

Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/AbstractSamplerCreator.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/properties_reference.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:38:06 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4178