Posted on Leave a comment

$response = wp_remote_request( ‘http://Www.azimiao.com/user.php’,
array(
‘method’ => ‘DELETE’,
‘httpversion’ => ‘1.1’,
‘headers’ => array(
‘Content-Type’ => ‘application/json’,
),
‘body’ => wp_json_encode( array(‘userid’=>1001) )
)
);
$body = wp_remote_retrieve_body($response);
echo $body;

Leave a Reply

Your email address will not be published. Required fields are marked *