如何使用 JSON 字符串发出 POST 请求


How to make a POST request with JSON string?

没有cURL我怎么能做到这一点?

我解析 JSON 字符串不会有问题,但我如何发出带有 POST 请求以返回包含数据的 json 字符串?

$dataFeed=$_GET["dataFeed"]; 
$url='urlneedtopostto';
$data=array('data'=>$dataFeed);
$jsonString=json_encode($data);

我怎样才能发布请求?

也许你可以使用 jQuery post 请求?http://api.jquery.com/jQuery.post/