Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

InvokeHttp processor doesn not send body on DELETE

Highlighted

InvokeHttp processor doesn not send body on DELETE

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

Re: InvokeHttp processor doesn not send body on DELETE

@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).

 

 

 


 


If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.  


 


Thanks,



Steven

Don't have an account?
Coming from Hortonworks? Activate your account here