wp_remote_get returns an error for valid URL

Try to increase the timeout (default is 5).

$response = wp_remote_get( 'http://www.toucan-it.co.uk/wp-content/themes/squash/index5.html', array( 'timeout' => 120, 'httpversion' => '1.1' ) );

Leave a Comment