Saturday, August 27, 2022
HomeWordPress Developmentsvn - cURL request to plugin repository fails 403

svn – cURL request to plugin repository fails 403


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?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments