Created
July 20, 2018 18:32
-
-
Save keiraarts/816b5dffa72628d6d436c324053764de to your computer and use it in GitHub Desktop.
wp_remote_post 403 Forbidden Fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$headers = array( | |
'User-Agent' => 'Stripe Connect' | |
); | |
$response = wp_remote_post( $endpoint, array( | |
'headers' => $headers, | |
'body' => http_build_query( $data ), | |
) | |
); | |
// Add http_build_query to your payload. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment