modified check the success of http request
check read is called