Added method for check http status and test connection