Hi, I did make the code a little more robust by not only checking if the rest_get() call succeeded, but also checking if $var(rcode) equalled "200" before doing the magic. This solved my problem. -- Andreas Sikkema