Short answer is no, you can't make any external connections from an on-chain application.
Long answer, you can emit an event on-chain, and you can have an external application listen for on-chain events that match the ix you are expecting to POST after, and you can read the properties of that ix as needed. There's no guarantee your listener will check the ix within a certain time frame. It'll also be expensive to listen constantly and often, and there's no great solution at this time.
For example you can use https://github.com/coral-xyz/anchor/blob/master/tests/events/tests/events.js, but if your server running this goes down, you'll miss all the events that happened while it was down.
So instead you might use getSignaturesForAddress
to scan all the transactions sent with your program, filter those by ones you haven't processed and then by the event you want. You can getTransaction
and read the logMessages
for your event, then extract the info you need for your POST from other Transaction data loaded with getTransaction
. This is also slow and expensive, and only gets slower the more your application gets used.