Fix internet detection to use OC_Util::getUrlContent

When using owncloud behind a proxy with a firewall restricting the port 80, it timeouts when detecting internet availability.
By using OC_Util::getUrlContent instead of fsockopen, the detections is done properly handling both proxy and no proxy cases.