CaRoWeb: now including ?remote= and redirect=checkout

We just updated the CaRoWeb interface. This update brings two brand-new options to the conversion requestions:

?remote= downloads containers from other web servers

In addition to the famous HTTP-POST-conversion you can now supply a link to a container that’s to be converted, e.g.:

1
curl 'http://SERVER/caro?remote=http://scripts.sems.uni-rostock.de/getshowcase.php'

the value supplied to the ?remote= gets interpreted as a link to a container (COMBINE archive or Research object) on a remote server. It will be downloaded and the conversion will be triggered. Thus, you do not need to download a COMBINE archive yourself, but you can point to an archive on the Internet! :)
That means, if you want to convert the archive behind http://scripts.sems.uni-rostock.de/getshowcase.php you can simply curl for:

1
$ curl http://caro.sems.uni-rostock.de/caro/caro/?remote=http://scripts.sems.uni-rostock.de/getshowcase.php

?redirect=checkout immediately delivers the container

We understand that people do not always want to parse needless JSON code. Thus, if you add ?redirect=checkout to your query you’ll get redirected to the actual container!

Without redirect:

1
2
$ curl http://caro.sems.uni-rostock.de/caro/caro/?remote=http://scripts.sems.uni-rostock.de/getshowcase.php
{"errors":[],"notifications":[],"checkout":"CombineArchiveShowCase.omex4242711464206811849-converted-2015-09-11-23-15-PM+0200.ro","warnings":[]}

you need to parse the JSON to retrieve the container from http://caro.sems.uni-rostock.de/checkout/CombineArchiveShowCase.omex4508850515417520827-converted-2015-09-11-23-17-PM+0200.ro

Using the latest version of the web interface you just need to append redirect=checkout and you’ll get the container:

1
2
$ curl -L http://caro.sems.uni-rostock.de/caro/caro/?remote=http://scripts.sems.uni-rostock.de/getshowcase.php&redirect=checkout
# here comes the container :)

Give it a try and open the link: http://caro.sems.uni-rostock.de/caro/caro/?remote=http://scripts.sems.uni-rostock.de/getshowcase.php&redirect=checkout

Read more about CaRoWeb and its options at the project page!