duanbarong4321
duanbarong4321
2016-09-05 12:36

注意:使用未定义的常量CURL_IPRESOLVE - 假设为'CURL_IPRESOLVE'

  • curl
  • ipv4
  • ipv6
  • php

I have 2 IP address on my dedicated server

  1. ipv4
  2. ipv6

i m trying to use ipv6 on CURL, below are code using on curl.

curl_setopt($ch, CURL_IPRESOLVE, CURL_IPRESOLVE_V4);

or

  curl_setopt($ch, CURL_IPRESOLVE_V4, true); 

but i got below error

Notice: Use of undefined constant CURL_IPRESOLVE - assumed 'CURL_IPRESOLVE' in /home/admin....... line 14
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答