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

Simple HTTP download

Hi,

I am trying to download an asset from iRAM via an automated process (i.e. shell script). I do not want to have to install any additional software.
Attempts to use wget have all failed on what I can only guess is some sort of login proxy page. I haven't tried curl yet but I'm not expecting better luck there.
Surely this is a solved problem, but I couldn't find anything

Any ideas?

Regards,
Rameshbabu.
(d.v.rameshbabu@in.ibm.com)

0 votes



One answer

Permanent link
I do not have wget on my machine, but the following curl example should be doable in wget as well:

curl -k -o out.zip  -u [uid]:[password] [ws server url]/oslc/assets/[guid]/[version].zip

The -k is to deal with https certificate that are not authorized
-u is for uid/passwd (assume asset is protected)

[ws server url]  is the web-services url (using basic authentication, vs. form authentication used by the default web url).  You get it from the Help->Extension page ... look for: ...Use the following URL to configure your connection to this repository...

use the guid and version, and add .zip to the end of it


0 votes

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

Question asked: Feb 13 '13, 4:25 a.m.

Question was seen: 5,036 times

Last updated: Feb 13 '13, 9:25 a.m.

Confirmation Cancel Confirm