Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

How to me to add parameter to cURL? #132

Open
nkl90 opened this issue May 6, 2016 · 1 comment
Open

How to me to add parameter to cURL? #132

nkl90 opened this issue May 6, 2016 · 1 comment

Comments

@nkl90
Copy link

nkl90 commented May 6, 2016

The command curl ifconfig.co print this:
2a01:7e00::f03c:91ff:fe18:68ff
That is, the system works through ipv6. And it is necessary for me that worked through ipv4.
I need to execute:
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
How can i do this? Perhaps do this config in global php.ini?

@nkl90
Copy link
Author

nkl90 commented May 7, 2016

I solv this problem just disable ipv6 for all system

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant