用PHP提交注释(cURL)


<?php 
$mycurl = curl_init();
curl_setopt_array($mycurl, 
[
CURLOPT_URL => "https://example.com", 
CURLOPT_RETURNTRANSFER => TRUE, 
CURLOPT_TIMEOUT => 4, 
CURLOPT_FOLLOWLOCATION => TRUE, 
CURLOPT_POST => TRUE, 
CURLOPT_POSTFIELDS => ["Name" => "Example", "Email" => "Example@gmail.com", "Comment" => "Example"]
]
);
$result = curl_exec($mycurl);
curl_close($mycurl); ?>
我的代码是错误的,我知道,我只是想学习PHP。我如何修复我的代码?我想要非常简单的东西。我只是想用我发的信息在网站上评论一下。

https://example.org不支持注释。或许可以尝试推出一个真正支持评论的服务,比如Discord。