curl 使用 ivp4
parent
356592d6f7
commit
9a99eb926f
|
|
@ -1112,6 +1112,7 @@ function CurlPost($url, $post, $is_json = false)
|
|||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_HEADER, false);
|
||||
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
|
||||
// 是否 json
|
||||
|
|
|
|||
Loading…
Reference in New Issue