Forum Discussion
Kevin_Stewart
Employee
Something like this?
when HTTP_REQUEST {
HTTP::respond 200 content "Your IP address is: [IP::client_addr]"
}
DB
Aug 10, 2020Nimbostratus
Trying to add this to a complex page being written by an irule that declares the HTML content in curly braces, like this:
HTTP::respond 200 content {
<html>
.....
}
If I put the "[IP::client_addr]" into the bracketed content, it prints out [IP::client_addr] instead of the value. How do I get it to do the substitution and print the actual value?