fix the user agent command detection.
use the new http_download function to replace http_get