Forum Discussion

sael_315797's avatar
sael_315797
Icon for Nimbostratus rankNimbostratus
Apr 24, 2017

script-errors

hello, can you please tell me what's wrong with my script, when HTTP_REQUEST{ if{![HTTP::uri] starts with "/spider"} if {![HTTP::uri] starts with "/super"}

  {HTTP::cookie insert name "AAA" value "no" }

else { HTTP::cookie insert name "AAA" value "yes" } } else { HTTP::cookie insert name "AAA" value "no" } } }

when HTTP_REQUEST{ if{ HTTP::cookie value equals "yes"} {pool Pool_cat} }

2 Replies

  • when HTTP_REQUEST {

    if {[HTTP::uri] starts_with "/spider"}{

     if {[HTTP::uri] starts_with "/super"}{
    
         HTTP::cookie insert name "cat" value $yes
    

    } else { HTTP::cookie insert name "cat" value $no } } else { HTTP::cookie insert name "cat" value $no } }