Skip to main content
Dataengineer1
Silver ⭐️⭐️
July 19, 2023
Solved

How to send an http POST application/x-www-form-urlencoded request using Apache-nifi's processor?

I need to convert the the request with Apache-nifi, can you help me how to do that?

 

curl --location --request POST 'https://localhost:8080/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=xxxxxxxx' \
--data-urlencode 'client_secret=yyyyyyyy' \
--data-urlencode 'type=EEEEEEEEEEE' \
--data-urlencode 'scope=ZZZZZZ'

 

 Thank for your help!!

SAMSAL
SAMSALAnswer
Platinum ⭐️⭐️⭐️
July 19, 2023

2 replies

DianaTorres
Community Manager
Community Manager
July 19, 2023

@Dataengineer1 Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our NiFi experts @SAMSAL and @cotopaul  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.

Translate
Regards, Diana Torres, Senior Community Moderator
SAMSAL
SAMSALAnswer
Platinum ⭐️⭐️⭐️
July 19, 2023

Hi @Dataengineer1 ,

 

This has been asked before , please refer to : https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339398

 

Thanks

 

Translate