Added custom httpclient code
Added custom client code