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)
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
I do not have wget on my machine, but the following curl example should be doable in wget as well:
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
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