load resource with http/https