curl error detection fix
url bug fix