Layer7 API Management

Expand all | Collapse all

API Gateway problem when using Accept-Encoding: gzip,  deflate

  • 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"