Help deleting header name that contains curly braces
Hi
Just a quick question. I was asked to use the F5 to remove a header name as follows {esbsoapheader}userName
The header value was just fine. But I was asked to remove {esbsoapheader} from header name {esbsoapheader}userName
I tried HTTP::header remove "{esbsoapheader}userName" but it did not work. I got an error as follows
TCL error: /Common/ilxpi_demo/ilxir_demo <HTTP_REQUEST> - list element in braces followed by "userName" instead of space while executing "HTTP::header remove "{esbsoapheader}userName""
I'm guessing the header name has invalid characters, ie "{}" Has anyone encountered something similar? Is this header name ilegal/malformed? Is there a way I can remove this?
Any help is appreciated! thank you!
I think I just figured it out guys Mohamed_Ahmed_Kansoh CA_Valli
Paste this and run it. It worked out for me. Now any of you can explain why this works?? Is this a bug with F5? At least it seems to me. If it is, how can I let them know so they can fix it.
when HTTP_REQUEST { if { [HTTP::uri] eq "/demo2" } { HTTP::header insert "{esbsoapheader}userName" "spencer" foreach aHeader [HTTP::header names] { log local0. "HTTP Request Headers: $aHeader: [HTTP::header value $aHeader]" } log local0. "***************REMOVING BAD HEADER************" HTTP::header remove "\\{esbsoapheader\\}userName" foreach aHeader [HTTP::header names] { log local0. "HTTP Request Headers: $aHeader: [HTTP::header value $aHeader]" } } }