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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Lorenzo5
Creator
Creator

curl (method: GET) performed in Talend: is possible to pass "-data" parameter with a tREST or tRESTClient component?

Hi,

I have to perform a cURL with Talend, and I would know if tREST or tRESTClient are useful for that, instead of a generic tSystem Component.

 

curl -X GET <url>/<path> -d '<json-data>'

My curl is aimed to perform a GET request, pass a "data" (json) parameter and retrieve a json response.
It needs also to be authenticated.


Well, speaking about authentication, tREST / tRESTClient are great, the work fine (tREST permith to specify headers good for authentication, and tRESTClient works perfectly because is fully configurable in terms of authentication method).

My problem is that my curl have to pass json data:
curl -X GET <url>/<path> -d '<json-data>'
and I don't know how to pass this data (body) since I have to perform a GET (not a POST).

Any help?

Thank you,
Lorenzo

 

Labels (5)
12 Replies
Lorenzo5
Creator
Creator
Author

Hi @mbocquet

no way with tREST or tRESTClient components. Eventually, I used tSystem component.

 

Regards,

Lorenzo

vapukov
Master II
Master II

GET - normally not support body, and it relate not only to Talend (You can try to do this in many programs, like Paw )

 

but You just need change GET to POST, and result would be same:

CURL:

0683p000009LwFo.png

 

Talend:

0683p000009Lw1D.png

 

 

0683p000009LwH0.png

 

0683p000009LvOM.png

 

0683p000009LwHF.png

Anonymous
Not applicable

Thank you vapukov , it's work know ! 0683p000009MACn.png