Forum Discussion

romolo82's avatar
romolo82
Icon for Cirrus rankCirrus
Jul 05, 2023

Set HTTP version

Hi, I need to set HTTP version on a service, forcing request and response from 1.0 to 1.1. I tried with this command on the irule: when HTTP_REQUEST { HTTP::version "1.1" } but doesn't work. An...
  • Paulius's avatar
    Jul 05, 2023

    romolo82 You might try the following to see if it resolves your issue.

    when HTTP_REQUEST priority 500 {
        HTTP::version "1.1"
    }
    
    when HTTP_RESPONSE priority 500 {
        HTTP::version "1.1"
    }

     What are you using to validate that the HTTP request has moved from HTTP 1.0 to HTTP 1.1 instead? You could use the following curl to validate this change.

    curl -IvkH 'Host: <fqdn>' "http://<url>"