facebook - PHP Curl CURLOPT_IPRESOLVE -


I am working on a Facebook application which uses Facebook graph AP for authentication, recently Facebook Has upgraded from IPv6 and supports my network 'NT' IPv6, hence the return of all my calls is getting started, the host is an unrecoverable error, I searched on Facebook bugs and found that we still have to force the Force Can request that they curl Using Ropitiaipiarsoelii can use IPv4.

Now when I try to send a request for a Facebook Graph API using Curl, I get a notification: Use of undefined CURLOPT_IPRESOLVE - has been assumed 'Curlop_IPRSOLEEV' < P> I want to know how I can enable this stability or how can I disable IPv6 support php so that I can send a request to Facebook Graph API using IPv4.

My code

  $ url = ("https://graph.facebook.com/me / ACCESS_TOKEN tokrn"); $ C = curl_init (); Curl_setopt ($ c, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ c, CURLOPT_URL, $ url); Curl_setopt ($ c, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); $ Content = curl_xac ($ c); $ Err = curl_getinfo ($ c, CURLINFO_HTTP_CODE); Curl_close ($ c);   

thanks

check the curl version

curl 7.10.8

This sample code for testing is available after trying

    

FYI:

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -