Hello Arlolra,
appologies for the slow reply, my dev work is only a part of my main job, and I've been rather 'busy' !
So I can actually use a browser from the local host (headless server). But I can ssh into the server and 'curl' the page you have asked about.
$ curl http://localhost/rest.php/localhost/v3/page/html/Main%20Page
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.38 (Debian) Server at localhost Port 80</address>
</body></html>
the same but this time using https ...
curl https://localhost/rest.php/localhost/v3/page/html/Main%20Page
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
which is consistent with the problems that I have seen other users have. IT also is why I wonder if I can get the server to 'self verify' somehow (like I do when I ssh into the server, but done locally). I know that the browser will normally store the SSL certificate, so as to 'verify' the server. but how to enable the same for the php commands within parsoid over localhost.
Again, I can confirm that when I run the site without https everything works just fine.
Should I try with a 'dev' version of parsoid (as outlined in Parsoid#Installation). In fact on that page (Parsoid#Linking a developer checkout of Parsoid) it states that :
<blockquote>
Parsoid code is bundled in two different ways: first, Parsoid is included from MediaWiki as a composer library, wikimedia/parsoid </blockquote>
Is this only in the git version ? as I don't find this path on the main mediawiki files that I downloaded. The only folder is the
/extensios/VisualEditor
and this doesn't have the structure as described in the parsoid development pages, which makes it hard to know what I should be modifying.
Appologies this became a longer response that I had anticipated !
David