Forum Discussion

Nat_Thirasuttakorn's avatar
Nov 29, 2004

Is there any iRule command in HTTP event to remove HTTP response code?

For example:-

 

 

response from server...

 

HTTP/1.1 200 OK

 

Connection: Keep-Alive

 

Content-Length: 2345

 

 

DATADATADATA...

 

 

to be...

 

DATADATADATA...

 

 

do i need to move to CLIENT/SERVER event?

 

 

Thanks in advance.
  • bl0ndie_127134's avatar
    bl0ndie_127134
    Historic F5 Account

    Yes, iRules do allow you to change the HTTP

    versions for both the request and responses. With that said, re-writing the versions should be done with caution because the client may not support the version you are changing to. In any case here is the rule.

     

        
        when HTTP_RESPONSE {    
          HTTP::version "0.9"    
          HTTP::close    
        }