您应该能够使用wp_remote_post()
对于该任务。
wp_remote_post(
\'http://example.com/s2m/?s2member_paypal_notify=1&s2member_paypal_proxy=LocalGate&s2member_paypal_proxy_verification=905e5a3c73480046f4354946788b8ea1\'
,array(
\'method\' => \'POST\'
,\'timeout\' => 30
,\'redirect\' => 5
,\'user-agent\' => \'my-app/1.0\'
,\'blocking\' => true
,\'compress\' => false
,\'sslverify\' => false
)
);
请注意,所有
$args
(第二个参数/数组)具有默认选项。你可以了解更多
in the Codex.