Dear Tomcat Team,

I hope this message finds you well.

I am currently facing a challenge regarding the use of HTTP/1.1 for specific 
API endpoints within a servlet configured for HTTP/2. My browser defaults to 
HTTP/2, which complicates the situation as I need to proxy some APIs to a 
server that only supports HTTP/1.1.
Is there a workaround available to enforce HTTP/1.1 for these particular 
endpoints?

Here is out server.xml config. All request from our app is http2 protocol.


<Connector port="${tomcat.secure.port}" 
protocol="org.apache.coyote.http11.Http11NioProtocol"

               relaxedPathChars="[\\]^`{|}" relaxedQueryChars="[\\]^`{|}"

               address="${tomcat.address}" minSpareThreads="100"  
maxThreads="200" SSLEnabled="true"

               scheme="https" secure="true" maxSwallowSize="-1" 
maxPostSize="-1">

        <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" 
readTimeout="50000" streamReadTimeout ="-1" streamWriteTimeout="-1"

        overheadContinuationThreshold="0" overheadDataThreshold="0" 
overheadWindowUpdateThreshold="0"/>

      <SSLHostConfig protocols="TLSv1.2+TLSv1.3"

             ciphers="${tomcat.ciphers}">

            <Certificate 
certificateKeystoreFile="/var/versa/vnms/data/certs/tomcat_keystore.jks"

                         certificateKeystorePassword="${keystore.password}"

                         certificateKeyPassword="${key.password}"

                         certificateKeystoreType="PKCS12" />

        </SSLHostConfig>

    </Connector>


Thank you so much for your help.



Thanks and Regards,
Anurag Sharma

Reply via email to