get 发送jason 数据
GET /library/books/_mget
{
"ids" : [ "1", "3" ]
}
Perl 版:
[elk@node01 ~]$ perl a1.pl
{"docs":[{"_index":"library","_type":"books","_id":"1","_version":1,"found":true,"_source":{ "title":"Elasticsearch: The Definitive Guide","price":5,"preview":"Elasticsearch is a distributed, scalable, real-time search and analytics engine. It ena‐bles you to search, analyze, and explore your data, often in ways that you did not anticipate at the start of a project. It exists because raw data sitting on a hard drive is just not useful." ,"publish_date":"2015-02-08"}},{"_inde
curl perl python get 发送json数据
最新推荐文章于 2022-11-30 09:17:51 发布
本文介绍如何利用curl、perl和python三种工具发送JSON格式的数据,涵盖了HTTP GET请求中携带JSON数据的方法。
摘要由CSDN通过智能技术生成