Page 1 of 1

parse http request

Posted: 18 Aug 2013 14:32
by rsegoly
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"

Re: parse http request

Posted: 19 Aug 2013 16:58
by Martin
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