online/offline actions using http request