cUrl PHP

I try to access a website using cUrl and it give 502 error and not showing anything
I try it in localhost but its working

My first guess would be that the external page you’re connecting to is timing out. Do you have the cURL timeout set? If so, you may want to set that to a few seconds.

What kind of website are you connecting to anyways?

1 Like

I add Discord oAuth in my website
In localhost it take only 5-6 Seconds to get data but not working on Infinity Free

Access to many social networks and other social services are blocked on our hosting due to abuse. This may be while the connection fails.

Did you try adding the cURL timeout already?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.