问题描述
|
这个问题已经在这里有了答案:
解决方法
您看过文档了吗?基本上,只需做一个curl_setopt()
$ch = curl_init();
curl_setopt($ch,CURLOPT_POST);
, 我同意其他所有人的意见,快速搜索文档将对您有所帮助。
我在这里找到了关于如何执行此操作的说明,http://davidwalsh.name/execute-http-post-php-curl
, 您将需要使用curl_setopt将CURLOPT_POST选项设置为TRUE,如下所示:
$curl_request = curl_init(\'http://path/to/url\');
curl_setopt($curl_request,CURLOPT_POST,TRUE);
// Finish setting options and make the request