Forum Discussion

Michael_McCoy_6's avatar
Michael_McCoy_6
Icon for Nimbostratus rankNimbostratus
Aug 01, 2006

iRules newbie - help with Oracle E-Biz 11i midtier

Tyring to create a rule that will allow forms to launch on port 9000, (i.e. use pool "GLD_forms_pool" if a url starts with "/dev60cgi"). Here's a snippet I attempted - which errored with unknown procedure.

 

 

when HTTP_REQUEST {

 

if {[HTTP::URI] starts_with "/dev60cgi"} {

 

use pool GLD_forms_pool

 

}

 

else {

 

use pool GLD_pool

 

}

 

}

 

 

Can someone help me? This syntax is completely new to me.

2 Replies

  • Your issue is with the HTTP::uri. Make the "uri" lowercase and you should be set.

    when HTTP_REQUEST {
      if { [HTTP::uri] starts_with "/dev60cgi" } {
        pool GLD_forms_pool
      } else {
        pool GLD_pool
      }
    }

    Next time, if you could post iRules questions to the iRules forum we would apprecitate it. iControl is our remote management API.

    -Joe