Modify $response Variable?


#1

Is there a way to modify the $response variable that you get when you do an HTTP Get request? I want to add to the received text that will then be processed later in my piston. But it appears that $response is not a variable that I can change. Other options?

Or alternately, how can I define a variable that I manipulate like I do with a $response? For example,

{trim({replace({replace({$response.name[ctr].text},"]","")},"[","")})}
to
{trim({replace({replace({myVariable.name[ctr].text},"]","")},"[","")})}


#2

I always insert the response into a local variable, and then do my processing.

Such as:
Set variable {name} to $response.name

You can then work your magic on the variable you created.


#3

Thanks for the info. I played around with it and got it to work.