bug fix for parse http and https curl