Forum Discussion
Scott_82463
May 24, 2011Nimbostratus
Simple "Hello World" iRule
I'm really new to F5 and iRules and I'm having trouble setting up a simple "Hello World" iRule. Here's the iRule I tried: when HTTP_REQUEST { if { [HTTP::uri] eq ...
bmw_10782
May 24, 2011Nimbostratus
Hi Scott,
The iRule is well written. And you should have a Hello World( not a well formatted xml output, but at least you should have it)
Have you configured the VS with this iRule?
Try to add a log
when HTTP_REQUEST {
if { [HTTP::uri] eq "/mytest" } {
set response "Hello World"
log local0. $response
HTTP::respond 200 content $response "Content-Type" "text/xml"
}
}
or something like this :)
Ps: you can avoid using the response variable : HTTP::respond 200 content "Hello World" "Content-Type" "text/xml"
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