Bug 48570

Summary: AjpSampler doesn't support query parameters (GET/POST)
Product: JMeter - Now in Github Reporter: Rainer Jung <rainer.jung>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal Keywords: PatchAvailable
Priority: P2    
Version: 2.3.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch against trunk r900635

Description Rainer Jung 2010-01-19 03:33:59 UTC
Created attachment 24858 [details]
Patch against trunk r900635

The AjpSampler allows to add query parameters in the GUI, but doesn't handle them correctly.

The attached patch fixes:

- when using POST, the data was send as name=name=value instead of name=value (getStringValue() already produces the final form, no need to prepend the name)

- when using POST, the posted data is not added to the HTTPSampleResult, so not shown in the GUI (tree view etc.)

- when using GET, the URL including the query string is send as the URL, leading to 404. Instead separate the query string as the appropriate AJP request attribute 0x05
Comment 1 Sebb 2010-01-21 06:46:47 UTC
Thanks for the patch, applied to SVN:

URL: http://svn.apache.org/viewvc?rev=901727&view=rev
Log:
Bug 48570 - AjpSampler doesn't support query parameters (GET/POST)

Modified:
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/AjpSampler.java
   jakarta/jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:37:44 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2333