Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to perform a POST call with a PDF file attached.
With Postman it works without any issues using form-data.
and the attachment definition:
but I get: HTTP Query 'http://.../uploadMainDocument' : '400 Bad Request'
Using x-www-form-urlencoded, I add the file path among the body parameters (and remove the attachment), but I get: HTTP Query 'http://.../ws/uploadMainDocument' : '415 Unsupported Media Type'
Has anyone encountered similar situations?
Thanks
Recommended Configuration for tHTTPClient
According to Talend component documentation, tHTTPClient is the modern replacement for tREST and tFileFetch. Use these settings to match Postman’s behavior:
Alternative: tFileFetch
If tHTTPClient continues to fail, many users successfully use tFileFetch for multipart uploads:
Troubleshooting Tips
Hi,
Thanks for the quick reply.
I've done everything except this point.
I can't find where to set "Files."
Thanks