Bug 48570 - AjpSampler doesn't support query parameters (GET/POST)
Summary: AjpSampler doesn't support query parameters (GET/POST)
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.3.4
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Keywords: PatchAvailable
Depends on:
Reported: 2010-01-19 03:33 UTC by Rainer Jung
Modified: 2010-01-21 06:46 UTC (History)
0 users

Patch against trunk r900635 (2.35 KB, patch)
2010-01-19 03:33 UTC, Rainer Jung
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Bug 48570 - AjpSampler doesn't support query parameters (GET/POST)

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