I’m attempting to replace a file in my plugin by getting the unique contents from the wordpress repository through cURL
The URL is of the format https://plugins.svn.wordpress.org/(plugin)/trunk/contains/instance.php – visiting the URL in a browser exhibits the code, precisely what I’m after.
Nonetheless, the cURL response is
<html>
<head><title>403 Forbidden</title></head>
<physique>
<heart><h1>403 Forbidden</h1></heart>
<hr><heart>nginx</heart>
</physique>
</html>
It seems grabbing supply code this manner is not allowed. file_get_contents()
would not work both.
Is there a method to do that that works?