Switched from wget to http client