Forum Discussion
iRule for Response Header "content-length"
I need help with getting the "content-length" value in Response header. Basically the iRule should check for HTTP "Status" 404 and "content-length" not equal to zero.
Thanks in advance,
15 Replies
- Waseem_Shaik_97
Nimbostratus
Hello All ,
I have a customer , who is request to insert content length by F5 (10.2.4) for all the server response , since he cannot do at the server side. How the irule looks like for this request since based on above thread I cannot find the right irule.
Any help is really appreciated.
Waseem
- Waseem_Shaik_97
Nimbostratus
Hello All ,
I have a customer , who is request to insert content length by F5 (10.2.4) for all the server response , since he cannot do at the server side. How the irule looks like for this request since based on above thread I cannot find the right irule.
Any help is really appreciated.
Waseem
- nitass
Employee
How the irule looks like for this request since based on above thread I cannot find the right irule.
e.g.
Insert Content Into Server Response
https://devcentral.f5.com/wiki/iRules.InsertContentIntoServerResponse.ashxJavascript Insert v10+ by Bhattman, Russell McGinnis
https://devcentral.f5.com/wiki/iRules.WebPage_Script_Insert_v10.ashxinsert javascript to html pages using irules
https://devcentral.f5.com/questions/insert-javascript-to-html-pages-using-irules - Waseem_Shaik_97
Nimbostratus
So in the above first link , I see this irule
when HTTP_RESPONSE { Insert HTML comment to the top of the payload. HTTP::payload replace 0 0 "" }
can we put any text or variable or leave this portion empty "
- nitass
Employee
can we put any text or variable or leave this portion empty "
it should not be empty. it is portion that is going to be inserted in the response (on top).
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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