import and use httpresponse object