Using cURL to directly "Download file for viewing"
![]() Hi all,
I would like to use cURL to directly download files from DOORS NG.
When I have an Artifact stored as file (e.g. docs, txt, etc ...) I would like to download it via cURL, without accessing to the DNG Dashboard and using authentication in the cURL command line: how can I do it?
Please can you post here some examples of cURL command line?
Many thanks
Alberto
|
One answer
![]()
David Honey (1.5k●1●7)
| answered Nov 09 '21, 5:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER You will still need to perform authentication. You can use basic form based authentication as described in https://jazz.net/forum/questions/81935/using-curl-command-line-to-monitor-performance. Comments Hi David,
thank you.
Then, after I'll be authenticated, which API for GETting the recource I have to use?
Can you put here an example in a cURL command line?
Many many thanks.
Alberto
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Just a GET on the resource URI with appropriate ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
If the project is configuration-managed you'll have to include the configuration URL using either header Configuration-Context or URL query oslc_config.context - making sure to correctly encode the query value.
You guys sure that artifact download is part of the supported OSLC API? |