get document from httpclient