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

Basic curl implementation #23

Open
szepeviktor opened this issue Jul 14, 2017 · 2 comments
Open

Basic curl implementation #23

szepeviktor opened this issue Jul 14, 2017 · 2 comments
Labels
p3 This is a minor priority issue

Comments

@szepeviktor
Copy link

Please add it to the README.

function curl_get_contents( $url ) {

    if ( ! function_exists( 'curl_init' ) ) {
        return false;
    }

    $ch = curl_init();
    $timeout = 60;

    curl_setopt( $ch, CURLOPT_URL, $url );
    curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $timeout );
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
    $response = curl_exec( $ch );
    curl_close( $ch );

    return $response;
}

// Instantiate the Message and Validator
$message = Message::fromRawPostData();
$validator = new MessageValidator( 'curl_get_contents' );
@github-actions
Copy link

We have noticed this issue has not recieved attention in 3 years. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jul 14, 2020
@szepeviktor
Copy link
Author

It's only 3 years :)

@github-actions github-actions bot removed the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jul 15, 2020
@RanVaknin RanVaknin added the p3 This is a minor priority issue label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3 This is a minor priority issue
Projects
None yet
2 participants