It's all about the answers!

Ask a question

Simple HTTP download


iRAM Administrator (3152156135) | asked Feb 13 '13, 4:25 a.m.
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)

One answer



permanent link
Gili Mendel (1.8k56) | answered Feb 13 '13, 9:23 a.m.
JAZZ DEVELOPER
edited Feb 13 '13, 9:25 a.m.
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


Your answer


Register or 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.