Discussion
· Nov 16, 2021

How to script the download of installation kits from the wrc

For all docker versions we have direct download links.

Like on our repository or on docker hub :

However, there is no direct link to download the installable (non docker) versions.

I propose you these two scripts to solve this need, the first one is with the wget command, the other one in curl.

Wget :

wget --delete-after --keep-session-cookies --save-cookies cookies.txt \
--post-data='UserName=<Your Login>&Password=<Your password>'  \
'https://login.intersystems.com/login/SSO.UI.Login.cls?referrer=https%253A//wrc.intersystems.com/wrc/login.csp'

wget --load-cookies cookies.txt --content-disposition \
https://wrc.intersystems.com/wrc/WRC.StreamServer.cls?FILE=/wrc/Live/ServerKits/IRIS-2020.1.1.408.0-win_x64.exe

cUrl :

curl -L -c cookies.txt -d "UserName=<Your Login>&Password=<Your password>" https://login.intersystems.com/login/SSO.UI.Login.cls?referrer=https%253A//wrc.intersystems.com/wrc/login.csp

curl -b cookies.txt https://wrc.intersystems.com/wrc/WRC.StreamServer.cls\?FILE\=/wrc/Live/ServerKits/IRIS-2020.1.1.408.0-win_x64.exe --output IRIS-2020.1.1.408.0-win_x64.exe
Discussion (1)1
Log in or sign up to continue

I add the powershell version :

Invoke-WebRequest -Uri 'https://login.intersystems.com/login/SSO.UI.Login.cls?referrer=https%253A//wrc.intersystems.com/wrc/login.csp' -SessionVariable session -Method POST -Body 'UserName=<Your Login>&Password=<Your Password>' 

Invoke-WebRequest -WebSession $session -Uri https://wrc.intersystems.com/wrc/WRC.StreamServer.cls?FILE=/wrc/Live/ServerKits/IRIS-2020.1.1.408.0-win_x64.exe -outfile "iris.exe"