Forum Discussion

yue_zheng1's avatar
Oct 16, 2024

about persist hash [HTTP::query]

hi everyone 
    I want to use http::query based session hold because my source address is a snat address distinguished by a different http::query. I hope this will be supported!!!
Use the following irules :

###################################################

when HTTP_REQUEST {

    log local0. "http_path [HTTP::path]"
    log local0. "http_query [HTTP::query]"
    set query [HTTP::query]
    persist hash "query"

}

OneConnect   profile

Persistence   hash 

Is that okay?

 

 

  • this irules:

    when HTTP_REQUEST {

        log local0. "http_path [HTTP::path]"
        log local0. "http_query [HTTP::query]"
        set query [HTTP::query]
        persist hash $query

    }