Look at what your browser actually sends when you update a post. At the very least, you'll need a nonce. However, depending on what you're trying to do, it might be easier to use wp-cli or write a php script that loads WP and then uses WP's functions to update & manipulate posts.
↧