add function curlRequest

add function curlRequest