Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup Headers and body on REST POST method in Pentaho?

I need to setup headers (Authorization) on the REST Client (Post method) in Pentaho.

I'm passing on the Authorization header as a parameter to the REST Client. Then use that variable inside the Headers field.

But I'm not sure I'm doing it right.

First step, set header on constant.

first

Second step, using header variable on rest client step

rest client

when I use postman passing the same headers, it works very well, like this

postman call

this is my ktr

error json

like image 376
luiz kava Avatar asked Oct 19 '25 05:10

luiz kava


1 Answers

I solved my problem just changing REST CLIENT step by HTTP POST, It works very well.

This damn step rest client just doesn't work when you need send a post request with json body.

works very well

like image 104
luiz kava Avatar answered Oct 22 '25 08:10

luiz kava



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!