Layer7 API Management

 View Only
  • 1.  API Gateway problem when using Accept-Encoding: gzip,  deflate

    Posted Apr 04, 2018 09:51 PM

    We are having and issue when doing a post to an api in our API Gateway with an Accept-Encoding: gzip, deflate request header ie:

     curl -v -H "Content-Type: application/json" -H "Accept-Encoding: gzip,
    deflate"
    'http://test.com/api_url' -d '{}'

    We dont get any response when the header is present in the request, surely if its not supported or doesnt know how to revert to not using this it should fail with a valid error message? If we remove the accept encoding header this works with no issue.

     

    Any help would be very much appreciated, thank you.



  • 2.  Re: API Gateway problem when using Accept-Encoding: gzip,  deflate
    Best Answer

    Broadcom Employee
    Posted Apr 05, 2018 01:16 AM

    "deflate" is not supported, you may just try

    -H "Accept-Encoding: gzip"


  • 3.  RE: Re: API Gateway problem when using Accept-Encoding: gzip,  deflate

    Posted Nov 28, 2024 11:48 AM

    Hi, I tried to find any documentation regarding the Accept-encoding header, but I couldn't find it. Is there anything available maybe? And why doesn't the API Gateway by default adjust the Accept-Encoding header, i.e. strip any unsupported encodings.