Posting an XML request using HTTP API
I figured it out. The WordPress HTTP API was doing it’s job; my problem was with the API I was working with. I just modified my code like: $url=”https://www.testurl.com”; $xml = <<<TESTED XML HERE>>>; $response = wp_remote_post( $url, array( ‘method’ => ‘POST’, ‘timeout’ => 45, ‘redirection’ => 5, ‘httpversion’ => ‘1.0’, ‘headers’ => array( ‘Content-Type’ … Read more