DO NOT REPLY [Bug 48570] New: AjpSampler doesn't support query parameters (GET/POST)

[email protected]
Newsgroups gmane.comp.jakarta.jmeter.devel
Message-ID <[email protected]/bugzilla/>
https://issues.apache.org/bugzilla/show_bug.cgi?id=48570

           Summary: AjpSampler doesn't support query parameters (GET/POST)
           Product: JMeter
           Version: 2.3.4
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=24858)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24858)
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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.