WIP: Harden get url content for apps own cloud com

@LukasReschke please take a look
Add type of $url