Forum Discussion
Ivan_383
Nimbostratus
Feb 18, 2021Help with iRule to delete an empty name header or allow HTTP malformed header
Hello guys, I hope you can help me, the scenario is the next, we are replacing an Brocade ADX with an F5 BIGIP, the scenario is like this: nowadays it exist Client - > PROXY security solution - >...
dennypayne
Employee
Jul 11, 2008A VIP doesn't normally change anything in the URI that the client requests, so in this case how does the client know to request something other than index.html (or one of the other browser defaults) if the VIP is not there?
While you could certainly use an iRule to change the requested URI (something along the lines of "if the URI is / or /index.html change it to /whateveryourdefaultis.html"), it would need to be sure and capture all iterations of the possible URI's that would need to be converted, as well as ignoring ones that do not need to go to the default page.
Denny
- Kevin_StewartOct 19, 2022
Employee
Try removing HTTP::has_responded.
when CLIENT_ACCEPTED { set hsl [HSL::open -proto UDP -pool syslog_server_pool] } when HTTP_RESPONSE { set status_code [HTTP::STATUS] set log_msg "" append log_msg "$Client_ip" append log_msg "$status_code" HSL::send $hsl"<190> $log_msg" }
Thanks Kevin for the response.
Can you please help to brief what will fetch or not captured if remove the statement "when HTTP_RESPONSE {if {HTTP::has_responded]} {return}" in the rule.
Thanks.
- Kevin_StewartOct 28, 2022
Employee
I'm not entirely sure that removing HTTP::has_responded would work here. But that statement is basically triggering on the presence of preceding iRule logic. You mentioned in the initial post that the 500 response was being logged by another iRule.
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