parse http request

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

parse http request

Post by rsegoly » 18 Aug 2013 14:32

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"

User avatar
Martin
Posts: 4430
Joined: 09 Nov 2012 14:23

Re: parse http request

Post by Martin » 19 Aug 2013 16:58

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

Post Reply