Forum Discussion
Raj_74912
Nimbostratus
Jun 30, 2010Unexpected CRLF with HTTP Version
Guys,
Need your help with this.
I am running version 9.4.8 and I am noticing that if I change the HTTP version in an iRule it adds extra CRLF after the irule changes the HTTP version. Any way to tell the irule not to add the extra CRLF when changing HTTP version?
So in summary when I update the HTTP version in a HTTP request I see the following: HTTP/1.0\r\n\r\n.
iRule:
if { [HTTP::version] eq "1.1" } {
if { [HTTP::header is_keepalive] } {
HTTP::header replace "Connection" "Keep-Alive"
}
HTTP::version "1.0"
} else {
if { [HTTP::version] eq "0.9" || [HTTP::version] eq "" } {
HTTP::version "1.0"
}
HTTP::version "1.0"
}
Thanks
Raj
- The_Bhattman
Nimbostratus
Hi Raj, - Raj_74912
Nimbostratus
It will only upgrade it if its not 1.0. Yes, little redundant but should not hurt. I have removed the extra HTTP::version 1.0 with no change visable. - hoolio
Cirrostratus
Hi Raj, - Raj_74912
Nimbostratus
I did open a case with F5 and they are saying its because of iRule and that I should buy professional services. - hoolio
Cirrostratus
If an iRule command appears to have a bug, F5 Support should open a case for you and help diagnose the issue. They won't write iRules for you though. As long as you make it clear that you think there might be a bug in an iRule command they should help.when HTTP_REQUEST { if { [HTTP::version] eq "0.9" || [HTTP::version] eq "" } { HTTP::version "1.0" } }
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