Forum Discussion
emilio_104458
Nimbostratus
Nov 30, 2011issue with newline
hi all,
i've a strange issue with an irule:
i can't add new line in a variable.
i try with:
set allHeaders [concat $allHeadersTemp '\n']
set allHeaders [concat $allHeader...
George_Watkins_
Nov 30, 2011Historic F5 Account
Newlines won't print in the log messages and the function you're looking for is called "join." I think the combination is what may be causing your issue here. Try printing them in an HTTP response like this and see how it works:
ltm rule concat_http_headers {when HTTP_REQUEST { set header_names [HTTP::header names] foreach header $header_names { lappend headers "$header: [HTTP::header value $header]" } HTTP::respond 200 content [join $headers "\n"]}} Hope this helps,
George
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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