Forum Discussion

marvn_58503's avatar
marvn_58503
Icon for Nimbostratus rankNimbostratus
Oct 23, 2013
Solved

What is the correct way to script multiple newline characters in iApp (to create a monitor)

I have a HTTP monitor which requires a \r\n\r\n at the end. For the life of me, I cannot fix the syntax on this. I end up with the following debugs in /var/tmp/scriptd.out (sanitised obviously). ...
  • Fred_Slater_856's avatar
    Oct 23, 2013

    The 11.4 f5.http template uses the following:

    'GET $::monitor__uri HTTP/1.1\\r\\nHost: $hostname\\r\\nConnection: Close\\r\\n\\r\\n'
    The extra backslash is consumed within the iApp, and the result is correct. It does not use app_utils.