Function for requesting with curl included. Added platform->isOnline() and request->httpcode