Bug 48570 - AjpSampler doesn't support query parameters (GET/POST)
AjpSampler doesn't support query parameters (GET/POST)
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.3.4
All All
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
: PatchAvailable
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2010-01-19 03:33 UTC by Rainer Jung
Modified: 2010-01-21 06:46 UTC (History)
0 users



Attachments
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
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