change curl_get_with_ip to http_get_with_ip and add http_post_with_ip function