Skip to content

HTTP URL Re-writing Modifier

Configure the JMeter HTTP URL Re-writing Modifier pre processors: properties, defaults, and practical usage notes for building reliable load tests.

Difficulty
intermediate
Guide type
reference
Estimated read time
2 min read
Last verified version
Verified JMeter 5.6

Part of the Pre Processors category. Also documented in context in the full Component Reference.

HTTP URL Re-writing Modifier

This modifier works similarly to the HTML Link Parser, except it has a specific purpose for which it is easier to use than the HTML Link Parser, and more efficient. For web applications that use URL Re-writing to store session ids instead of cookies, this element can be attached at the ThreadGroup level, much like the HTTP Cookie Manager. Simply give it the name of the session id parameter, and it will find it on the page and add the argument to every request of that ThreadGroup.

Alternatively, this modifier can be attached to select requests and it will modify only them. Clever users will even determine that this modifier can be used to grab values that elude the HTML Link Parser.

NameRequiredDescription
NameNoDescriptive name given to this element in the test tree.
Session Argument NameYesThe name of the parameter to grab from previous response. This modifier will find the parameter anywhere it exists on the page, and grab the value assigned to it, whether it’s in an HREF or a form.
Path ExtensionNoSome web apps rewrite URLs by appending a semi-colon plus the session id parameter. Check this box if that is so.
Do not use equals in path extensionNoSome web apps rewrite URLs without using an “=” sign between the parameter name and value (such as Intershop Enfinity).
Do not use questionmark in path extensionNoPrevents the query string to end up in the path extension (such as Intershop Enfinity).
Cache Session IdYesShould the value of the session Id be saved for later use when the session Id is not present?
URL EncodeNoURL Encode value when writing parameter
On this page