Skip to content

Instantly share code, notes, and snippets.

@maheshwaghmare
Last active May 12, 2020 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maheshwaghmare/5880f4e048c4c601e9764a630c252f6c to your computer and use it in GitHub Desktop.
Save maheshwaghmare/5880f4e048c4c601e9764a630c252f6c to your computer and use it in GitHub Desktop.
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