Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Does APEX_WEB_SERVICE.MAKE_REST_REQUEST support GET with JSON body

Pavel_pMay 10 2021

Hello,
I've just tried to invoke Elasticsearch API (GET method with JSON object in request body) and no matter what I do, Elastic returns

"type":"illegal_argument_exception","reason":"text is empty (possibly HTTP/0.9)"

so I'm assuming empty string is being sent in as request body. If I change the method to POST (as Elastic supports both GET and POST methods for search API), I'm getting the expected response, so I just want to make sure if GET method with body is even supported.
@carsten-czarski-oracle , please could you confirm that?
Thanks a lot
Pavel

This post has been answered by Carsten Czarski-Oracle on May 10 2021
Jump to Answer
Comments
Post Details
Added on May 10 2021
2 comments
698 views