I am using extract variable policy and i want to extract a variable through JSON response, The variable i want to extract is "HOST" but when i trace my policy i am unable to get value in my defined
variable.
Following is my Extract Variable Policy:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ExtractVariables async="false" continueOnError="false" enabled="true" name="EV_origion"> <DisplayName>EV_origion</DisplayName> <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> <JSONPayload> <Variable name="Host"> <JSONPath>$.headers[4].Host</JSONPath> </Variable> </JSONPayload> <Source>response.content</Source> <VariablePrefix>myHost</VariablePrefix> </ExtractVariables>
Solved! Go to Solution.