converted webclient calls to httpclient calls