Send POST request to WordPress to make a new post

I would recommend using XML-RPC. You can find the documentation here. This is a more mature and secure approach than building your own functionality that already exists in core.

You can find all of the methods for various operations here.