Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in curl api #120

Open
amirsam00 opened this issue Jan 8, 2022 · 0 comments
Open

error in curl api #120

amirsam00 opened this issue Jan 8, 2022 · 0 comments

Comments

@amirsam00
Copy link

amirsam00 commented Jan 8, 2022

hi i have a problem when i curl api and i get below error:
"Failed to connect to www.coinex.com port 443: Connection refused7"
my code is :

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
    curl_setopt($ch, CURLOPT_URL, "https://api.coinex.com/v1/market/list");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    if ($disableSSl) {
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    }

    curl_setopt($ch, CURLOPT_TIMEOUT, 30000);
    curl_setopt($ch, CURLOPT_ENCODING, '');
    curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com.com/");
    curl_setopt($ch, CURLOPT_HEADER, false);

    $t = curl_error($ch);
    curl_close($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant