HH-39931 make possible to use other than curl httpclient