I am trying to send a POST request to a rest endpoint I have running in a playground instance. However, the request is returning PHP Request Startup: Unable to connect to ssl://playground.wordpress.net:443 (Host is unreachable). I have networking enabled in the features.
I'm essentially just running this via runPHP with the JS API:
<?php
require_once 'wordpress/wp-load.php';
$post = wp_remote_post( get_rest_url( null, '/custom-endpoint/v1/test' ) );
The rest URL does contain the scope
https://playground.wordpress.net/scope:0.2650545321128708/wp-json/custom-endpoint/v1/test
Returns:
PHP Request Startup: Unable to connect to ssl://playground.wordpress.net:443 (Host is unreachable)
Is this not possible or is there another way that I've missed?