更新时间:2023-02-24 12:33:40
看不太懂,现在是https://xxx.xxx.com/xxx/list这个网址,打开浏览器输出了{"message":"123。"}这段内容?然后你要获取123?
https://xxx.xxx.com/xxx/list
{"message":"123。"}
$res = file_get_contents('https://xxx.xxx.com/xxx/list'); $res = json_decode($res, true); echo $res['message'];
发送json post使用php
使用php CURL从http post获取内容正文
如何使用PUT方法通过cURL / PHP将JSON数据发送到API
如何使用PHP和cURL转发$ _POST?
PHP cURL POST Jenkins使用参数
使用PHP中的cURL POST文件字符串?
如何使用PHP,curl和HTTP POST通过流文件上传文件?
如何使用 PHP 和 cURL 转发 $_POST?
使用PHP(curl)从JSON中提取数据(Google Maps API)
使用PHP cURL POST JSON