Curl请求:

     <span style="color: #800080">$postUrl</span> = <span style="color: #800080">$url</span><span style="color: #000000">;
        </span><span style="color: #800080">$curlPost</span> = <span style="color: #800080">$param</span><span style="color: #000000">;
        </span><span style="color: #800080">$curl</span> = curl_init();<span style="color: #008000">//</span><span style="color: #008000">初始化curl</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_URL,<span style="color: #800080">$postUrl</span>);<span style="color: #008000">//</span><span style="color: #008000">抓取指定网页</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_HEADER, 0);<span style="color: #008000">//</span><span style="color: #008000">设置header</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_RETURNTRANSFER, 1);<span style="color: #008000">//</span><span style="color: #008000">要求结果为字符串且输出到屏幕上</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_POST, 1);<span style="color: #008000">//</span><span style="color: #008000"><a rel="noopener noreferrer nofollow" href="http://www.chhua.com/web-notetag/post" rel="noopener noreferrer nofollow" target="_blank" title="post">post</a>提交方式</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_POSTFIELDS, <span style="color: #800080">$curlPost</span><span style="color: #000000">);
        </span><span style="color: #800080">$data</span> = curl_exec(<span style="color: #800080">$curl</span>);<span style="color: #008000">//</span><span style="color: #008000">运行curl</span>
        curl_close(<span style="color: #800080">$curl</span><span style="color: #000000">);
        </span><span style="color: #0000ff">return</span> <span style="color: #800080">$data</span>;

请求结果:bool(false)
原因:$postUrl为https,https有SSL(安全套接层协议层 ),那么不验证SSL就OK了。

        <span style="color: #800080">$postUrl</span> = <span style="color: #800080">$url</span><span style="color: #000000">;
        </span><span style="color: #800080">$curlPost</span> = <span style="color: #800080">$param</span><span style="color: #000000">;
        </span><span style="color: #800080">$curl</span> = curl_init();<span style="color: #008000">//</span><span style="color: #008000">初始化curl</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_URL,<span style="color: #800080">$postUrl</span>);<span style="color: #008000">//</span><span style="color: #008000">抓取指定网页</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_HEADER, 0);<span style="color: #008000">//</span><span style="color: #008000">设置header</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_RETURNTRANSFER, 1);<span style="color: #008000">//</span><span style="color: #008000">要求结果为字符串且输出到屏幕上</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_POST, 1);<span style="color: #008000">//</span><span style="color: #008000">post提交方式</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_POSTFIELDS, <span style="color: #800080">$curlPost</span><span style="color: #000000">);
        curl_setopt(</span><span style="color: #800080">$curl</span>, CURLOPT_SSL_VERIFYPEER, <span style="color: #0000ff">false</span>); <span style="color: #008000">//</span><span style="color: #008000">不验证证书下同</span>
        curl_setopt(<span style="color: #800080">$curl</span>, CURLOPT_SSL_VERIFYHOST, <span style="color: #0000ff">false</span><span style="color: #000000">); 
        </span><span style="color: #800080">$data</span> = curl_exec(<span style="color: #800080">$curl</span>);<span style="color: #008000">//</span><span style="color: #008000">运行curl</span>
        curl_close(<span style="color: #800080">$curl</span><span style="color: #000000">);
        </span><span style="color: #0000ff">return</span> <span style="color: #800080">$data</span>;