brought back better version of http_get usage (lost in the refactor)