Hi,
I have a script in F5 and i want to convert it to haproxy cfg , and I can’t find how to do it:
when HTTP_REQUEST {
HTTP::collect 50
}
when HTTP_REQUEST_DATA {
if {[HTTP::payload] contains “\214\203\230C1”} {
pool SERVER_POOL1
}
elseif {[HTTP::payload] contains “\214\205\230C1”} {
pool SERVER_POOL1
}
elseif {[HTTP::payload] contains “\214\203\230C2”} {
pool SERVER_POOL2
}
elseif {[HTTP::payload] contains “\214\205\230C2”} {
pool SERVER_POOL2
}
else {
pool SERVER_TRAFFIC
}
}
Can anyone assist me.
Yoni