Add httpclient function.