Forum Discussion
marvn_58503
Nimbostratus
Oct 23, 2013What 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).
...
- Oct 23, 2013
The 11.4 f5.http template uses the following:
The extra backslash is consumed within the iApp, and the result is correct. It does not use app_utils.'GET $::monitor__uri HTTP/1.1\\r\\nHost: $hostname\\r\\nConnection: Close\\r\\n\\r\\n'
Fred_Slater_856
Oct 23, 2013Historic F5 Account
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.- marvn_58503Nov 19, 2013
Nimbostratus
Just coming back to this - I can confirm that it seems app_utils will not correctly handle multiple \r\n characters and you have to create it manually using ltm_create. I'm finding so many limitations in app_utils I'm wondering why bother using it at all. Marking as answer. - Fred_Slater_856Nov 19, 2013Historic F5 AccountWe agree, and we deprecated app_utils in 11.4. It's still there for backward compatibility, but the F5 iApps all use the new iapp:: tcl package instead. It is documented here https://clouddocs.f5.com/api/iapps/iApp-Utility-Package.html, and you can find examples by looking at f5.http in 11.4.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
