Skip to content

Instantly share code, notes, and snippets.

@maheshwaghmare
Created May 12, 2020 15:05
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/c956a8980e485b851dd3398ac3e960d6 to your computer and use it in GitHub Desktop.
Save maheshwaghmare/c956a8980e485b851dd3398ac3e960d6 to your computer and use it in GitHub Desktop.
Perform the "Basic Authentication" request with CURL using WordPress plugin "Application Passwords". Read more at https://maheshwaghmare.com/doc/application-passwords/
curl --user "admin:mK7M wZmN Fuj5 IKYF XUAv EZ8H" -X POST -d "title=Rest API Post 2" http://localhost/dev.test/wp-json/wp/v2/posts/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment