Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to use post method along with the body

I wanted to post the body data into the website using talend

i am able to do it in postman but, i don't know how to do it in talend 

 

postman Image:

i am unable to give the body data as like in postman0683p000009M9rv.jpg

Labels (3)
10 Replies
manodwhb
Champion II
Champion II

@mukeshmsp96 ,check the below way. and http body should be as below.this should work. I have already used the tRest component with post method.

 

"

{

\"name\":\"mukesh\"

}

"

0683p000009MA4Z.png

Anonymous
Not applicable
Author

this isn't working is there any another way resolve this problem

manodwhb
Champion II
Champion II

@mukeshmsp96 ,what error are you getting. are you using same url which tried from post man?

Anonymous
Not applicable
Author

yes, i am using the same url from the postman 

error 403 which belongs to credentials where should i give the authorization crediantails

 

manodwhb
Champion II
Champion II

Anonymous
Not applicable
Author

i have checked that solution but i wasn't able to set the body in trestclient but in trest i was able to set the body

but, the problem is in trestclient the credentials are working but not working in the trest component

manodwhb
Champion II
Champion II

@mukeshmsp96 ,can you try to pass the below way and let me know is it working0683p000009M9qE.png.

 

Anonymous
Not applicable
Author

no it gives an error 0683p000009MA4o.png

lucTalend
Contributor
Contributor

Hey mukeshmsp96 

 

Try to use tREST component , you can simply pass body :

0683p000009MA5n.png

 

For testing purpose you can use endpoints from postman https://docs.postman-echo.com/?version=latest

 

 

Lucjan