wp_remote_get returns an error for valid URL
I currently have the following snippet of php to fetch some HTML and render it in my theme(squash theme). <?php $response = wp_remote_get( ‘http://www.toucan-it.co.uk/wp-content/themes/squash/index5.html’ ); print $response [‘body’]; ?> The file I’m trying to request is available at the following URL. http://www.toucan-it.co.uk/wp-content/themes/squash/index5.html Problem The problem is when trying to retrieve ‘index5.html’ via the web browser … Read more