使用CURL发表请求[重复]

问题描述

|                                                                                                                   这个问题已经在这里有了答案:                                                      

解决方法

        您看过文档了吗?基本上,只需做一个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
    

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...