Viewing 1 replies (of 1 total)
  • Plugin Author doublesharp

    (@doublesharp)

    Hi @neuquen7, apologizes I didn’t see your post until now. The plugin does work with SSL, I just checked that I was able to fetch multiple sites over HTTPS.

    Here are the curl options that are being set (including to not validate SSL certs that may be invalid or self-signed).

    
    $ch = curl_init();									// set up curl
    curl_setopt( $ch, CURLOPT_URL, $url );				// the url to request
    curl_setopt( $ch, CURLOPT_TIMEOUT, $timeout );		// set a timeout
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );	// return to variable
    curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );	// don't verify host ssl cert
    curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );	// don't verify peer ssl cert
    if ( ! empty( $userpwd ) )
    	curl_setopt( $ch, CURLOPT_USERPWD, $userpwd );	// send a user:password
    if ( $method == 'POST' )
    	curl_setopt( $ch, CURLOPT_POST, true );			// optionally POST
    if ( ! empty( $content ) )
    	curl_setopt( $ch, CURLOPT_POSTFIELDS, $content ); // send content of tag
    if ( false === ( $response = curl_exec( $ch ) ) )	// fetch remote contents
    	$error = curl_error( $ch );						// if we get an error, use that
    curl_close( $ch );									// close the resource
Viewing 1 replies (of 1 total)
  • The topic ‘Support for HTTPS’ is closed to new replies.