Perform the "Basic Authentication" request with CURL using WordPress plugin "JSON Basic Authentication". Read more at https://maheshwaghmare.com/doc/basic-authentication/
curl --user "admin:admin" -X POST -d "title=Basic Auth Post 2" http://localhost/maheshwaghmare.com/wp-json/wp/v2/posts/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment