Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

InvokeHttp processor doesn not send body on DELETE

avatar
New Contributor

We noticed from source code that request body is not included on DELETE request.

 

In our case target API reqiures a body on DELETE request.

Is there any way to workaorund this?

 

Many thanks in advance!

 

1 REPLY 1

avatar
Super Guru

@mzidy Have you tried to append the data you want to pass in the Remote Url?  Some Apis will accept the values in the $_GET request.


For example:

DELETE:  https://api.cloudera.com/api/service/?value1=value1&value2=value2

 

Some apis could be:

DELETE:  https://api.cloudera.com/api/service/1/2/

 

In both these examples the $_GET variables are used not a $_POST.   I believe this may be typical for most DELETE calls and may explain why DELETE doesn't send a $_POST (body).