add some null pointer check for  httpclientdownloader
add a method for httpclientdownloader