-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
p3This is a minor priority issueThis is a minor priority issue
Description
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' );Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
p3This is a minor priority issueThis is a minor priority issue