Transformation rule creation

Hi there,

How can I create this transformation rule in CF

when HTTP_REQUEST priority 305 {
HTTP::header remove “X-Forwarded-For”
HTTP::header replace X-Forwarded-For [call ag_info0::http_client_ip]
}

I tried to satisfy this condition, but with luck.
Can you please, help ?