Title: Support for HTTPS
Last modified: August 31, 2016

---

# Support for HTTPS

 *  Resolved [neuquen7](https://wordpress.org/support/users/neuquen7/)
 * (@neuquen7)
 * [10 years ago](https://wordpress.org/support/topic/support-for-https-3/)
 * I’m scraping a site which used to work until they started redirecting to HTTPS.
   Can you please add support for HTTPS?
 * I also just want to add that when I try to send a request using HTTPS I get the
   following error message:
 * `SSL connect error`
 * [https://wordpress.org/plugins/remote-content-shortcode/](https://wordpress.org/plugins/remote-content-shortcode/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * (@doublesharp)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/support-for-https-3/#post-8732311)
 * Hi [@neuquen7](https://wordpress.org/support/users/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.

 * ![](https://s.w.org/plugins/geopattern-icon/remote-content-shortcode.svg)
 * [Remote Content Shortcode](https://wordpress.org/plugins/remote-content-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/remote-content-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/remote-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/remote-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/remote-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/remote-content-shortcode/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 1 reply
 * 2 participants
 * Last reply from: [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/support-for-https-3/#post-8732311)
 * Status: resolved