Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Hi @mbocquet
no way with tREST or tRESTClient components. Eventually, I used tSystem component.
Regards,
Lorenzo
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:
Talend:
Thank you vapukov , it's work know !