Do you want to do this on all responses? Could you use the IP address instead? If so, you could add a blank stream profile, a custom HTTP profile with response chunking set to rechunk and an iRule like this to rewrite the title tag in responses to title>1.1.1.1:
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Insert the server IP address:port into the HTML title tag
STREAM::expression "@[subst -nocommands {[tT][iI][tT][lL][eE]>}]@title>[IP::server_addr]:[TCP::server_port]@"
Enable the stream filter for this response only
STREAM::enable
}
}
Aaron