Forum Discussion
James_Thomson
Feb 02, 2015Employee
How can I reorder HTTP headers?
I want to insert an HTTP header into the current list of HTTP headers, but I need it to be the first HTTP header in the list, before the Host, Content-Type and Content-Length. Using the standard HTTP...
Michael_Yates
Feb 02, 2015Nimbostratus
Hi James,
You can use a for loop and grab the HTTP::header count (but I would suggest looking at the Wiki Entry for HTTP::header. It was reported that at one time it was zero based, but was fixed in v9.4.8 and v10.x.x).
Like this in C, but you will want to look up how to do it in TCL. for (i = 0, i < HTTP::header count; i++)
Hope this helps.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects