Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Rewrite Request Body

Options
jefftuckerbofa
jefftuckerbofa Posts: 234

What's the best way to intercept a request and change a value in the body ? For example, the JSON payload of my request is

{
"id": "abc"
}

and I want to modify it as such:

{
"id": "xyz"
}

and then continue processing the request.

Comments

  • jefftuckerbofa
    jefftuckerbofa Posts: 234
    Options

    Figured it out! I added Output to the Incoming Request using a Messaging Client. Altered the request body and forwarded the request.

  • jefftuckerbofa
    jefftuckerbofa Posts: 234
    edited July 2020
    Options

    Virtualize is great!

  • williammccusker
    williammccusker Posts: 643 ✭✭✭
    Options

    Glad to hear you think it is great! :smile: