KB Article #176710

HTTP GET requests do not send contents of content.body

Problem

-- The API Gateway will not send the contents of content.body with an HTTP GET.



Resolution

* Whether an HTTP GET may contain a body or not is not specified in RFC 2616 and the API Gateway does not support sending message bodies with an HTTP GET. The gateway is designed to ignore the contents of content.body when the HTTP verb equals "GET" so neither Connection nor Connect to URL will send content.body with a GET, no matter how you construct the message. This behavior is not configurable.


Accordingly, it is necessary to use another HTTP verb when you intend to send requests with message bodies, such as POST, PUT or PATCH.