Try using the output option to store the return: https://ec.haxx.se/usingcurl-downloads.html I think your command is working but the output is going somewhere unexpected. Just use -o on the cURL command.
You already worked around your SSL issue but if you want to fix it properly you may need to add the chain file (intermediate certificates) to your Tableau Server, update the root certs or point to a local cert in cURL (https://ec.haxx.se/usingcurl-tls.html )
Thanks Robin, Your suggestion is worked and can see file available in the location. Another issue where inputs are appreciated regarding tableau files with space in their titles and to resolve it I have added %20 in the curl command (> M:\Tableau\Tag%20Periodical.twbx ). It's causing an issue while opening downloaded file with %20 in the title. When I remove %20 and keep space while executing CURL command then gets an error curl: (6) Could not resolve host: Periodical.twbx Any thoughts how it can be resolved?
1 of 1 people found this helpful
Forget about URL encoding your file name and simply quote the -o like the docs describe: curl - How To Use
For example -o "D:\My File name with Spaces.twbx"
As long as the file name is valid for the OS that should work.
Thanks Robin. Its helpful.
Hi Robin I am trying to run command in same line with what discussed earlier I got my windows AD password got changed and using service account to generate token.. But when executing following command it gives me error like "segmentation fault". see below complete error. But when I remove the command part after token (which basically output file to particular location) then I can see workbook xml.. Could you pls confirm if something missing here? curl --insecure "https://My-Server/api/2.6/sites/555ecfff-c82f-45c9-bf91-e542545805b8/workbooks/c04156a3-0d02-4736-a57d-59bcbd322910/content" -X GET -H "X-Tableau-Auth:TNVgRmgrTgCiPMdkkESiaQ|lifA2yjFOwz3fgQW3EHCgb3kfP5myuWP" -o “M:\Tableau_Files\Research Readership Template.twb” Error:- curl: (6) Could not resolve host: Readership Segmentation fault But when use output part of the command as "-o M:\Tableau_Files\Research%20Readership%20Template.twb" then don't see any error but cant see file either in the location. Could you pls confirm if there is any other way than CURL to run this Download Workbook API end point successfully?