Your comments

Hi Stefan,

I also noticed this, and sent a test project to support (see attached). So far I have received a workaround (create multiple correctly rotated images) but not a solution.
Have an upvote!

Hi Sergey,

Good to know.

thank you!
Those are conditionals, not regular expressions.
As you might have guessed Theo, this wouldn't be of much help for me personally but I do think this could be a great stepping stone for installers to get used to working with javascript. This way they don't have to relearn everything when they need even more functionality.
Therefore this is my suggestion:
Would it be an option to integrate something like the current iRidium Script Helper into the Macros panel? You could then possibly drag an IF statement into the macros, fill in the fields and Javascript Code comes out as a kind of script call macro.
Please let me know what you think!

Then please consider this a feature request.
I would like to be able to read the response headers of an HTTP request.

There is a lot of useful information to be gathered from this:

HTTP/1.1 200 OK
Date: Fri, 17 Apr 2015 10:33:56 GMT
Server: thin 1.5.1 codename Straight Razor
Content-Type: text/html; charset=utf-8
X-UA-Compatible: IE=Edge,chrome=1
ETag: "ab31c645eacfc515be940caa09cfdb3c"
Cache-Control: must-revalidate, private, max-age=0
X-Request-Id: b7cf9ef740acb82ea130e62be7aae2e0
X-Runtime: 0.809662
X-Rack-Cache: miss
Vary: Accept-Encoding
Content-Encoding: gzip
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked

I don't care if I have to parse this information myself, as long as it's available.
Debugging by checking if something does not exist is just not good enough. It could be a server error, typo, access denied, or something completely different.
Please let me know if this is possible in a future version.
I think I understand what you mean, I should wait untill all data is in.
this is the code I use now:

var buffer = "";
IR.AddListener(IR.EVENT_RECEIVE_TEXT, this.HttpModbus, function(text)
buffer += text;
IR.Log("Receive text: " + text);
IR.AddListener(IR.EVENT_OFFLINE, this.HttpModbus, function()
IR.Log("Buffer: " + buffer);
IR.AddListener(IR.EVENT_ONLINE, this.HttpModbus, function()

It does show data when the server responds with HTTP 200 OK:
04-17-2015 09:44:50 Kernel.Info [17-04-2015 09:44:51.000] INFO Buffer!
04-17-2015 09:44:50 Kernel.Info [17-04-2015 09:44:51.000] INFO Buffer:
04-17-2015 09:44:50 Kernel.Info [17-04-2015 09:44:51.000] INFO Receive!
04-17-2015 09:44:50 Kernel.Info [17-04-2015 09:44:51.000] INFO Receive text:
04-17-2015 09:44:50 Kernel.Info [17-04-2015 09:44:51.000] INFO Server Event: Response!
04-17-2015 09:44:50 Kernel.Info [17-04-2015 09:44:51.000] INFO Online

Still it doesn't show it was a 200 OK response.

When the server responds with a 404 or a 500 error code there is no response shown even though the event is triggered.
The log looks like this:
04-17-2015 09:42:39 Kernel.Info [17-04-2015 09:42:39.000] INFO Buffer!
04-17-2015 09:42:39 Kernel.Info [17-04-2015 09:42:39.000] INFO Receive!
04-17-2015 09:42:38 Kernel.Info [17-04-2015 09:42:39.000] INFO Online

Complete IR.Log lines are missing.

Please let me know if you need any more information.
Is it correct that POST does not return data to IR.EVENT_RECEIVE_TEXT ?

When using GET i do get a response, but only the content.
Is it possible to receive the HTTP status code somehow? (like a 200 OK or 404 page not found)
This seems to be working correctly for both the windows and the iPad version.
Hi Sergey,

That worked, thank you!
Hi Olga,

Thanks for your reply.
The important thing is you know of this problem and are planning to fix it. In the mean time I'll use a workaround.


never mind, That way is working now.