Why is this specific API request failing when sending via wp_remote_post?

Those with eagle eyes may have noticed that in the PHP code, the boundary string inside the Content-Type header was prefixed with two dashes (--).

Those dashes should have not been there. Removing them allows the request to work.

🤦‍♂️

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)