Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link

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.

0 votes

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
 

Just a GET on the resource URI with appropriate Accept header, and Oslc-Core-Version: 2.0 header. DN has a copy link action to determine the URI of a requirement shown in the UI. Or you can get the URI through an OSLC query or referenced by some other known resource.

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? 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,078
× 25
× 17

Question asked: Nov 09 '21, 3:40 a.m.

Question was seen: 3,373 times

Last updated: Nov 16 '21, 5:25 a.m.

Confirmation Cancel Confirm