I need to parse the result of http request ad act upon. I created a condition and put two options for true and false
But is this comparison correct way of doing it? The string on the right is the actual result response == "0,0,0,0,255"
parse http request
Moderator: Martin
Re: parse http request
Hi,
I assume you have an action HTTP Request and store the result of the HTTP GET in the variable response.
If the server returns exactly the text 0,0,0,255 then you could use following script in a condition Expression:
response=="0,0,0,0255"
or
contains(response, "0,0,0,0,255")
to check if the text is contained in the response.
Regards,
Martin
I assume you have an action HTTP Request and store the result of the HTTP GET in the variable response.
If the server returns exactly the text 0,0,0,255 then you could use following script in a condition Expression:
response=="0,0,0,0255"
or
contains(response, "0,0,0,0,255")
to check if the text is contained in the response.
Regards,
Martin