Move check to curl check and add method hoa check

keep var_dump for debug