wp-net / WordPressPCL

This is a portable library for consuimg the WordPress REST-API in (almost) any C# application
MIT License
335 stars 131 forks source link

Examples on the 'Quickstart' page are misleading due to HTTP usage. #371

Open papsl opened 1 month ago

papsl commented 1 month ago

I suggest changing examples on Quickstart to use HTTPS schema, from:

var client = new WordPressClient("http://demo.wp-api.org/wp-json/");

to

var client = new WordPressClient("https://demo.wp-api.org/wp-json/");

Since WordPress authentication only works when TLS is used and in case of HTTP will return "Sorry, you are not allowed to create posts as this user".

papsl commented 1 month ago

I changed the readme.md file and created #372 pull request. Since I lost a few hours due to HTTP in example today. :)