![curl -d中的json存在引号怎么处理? curl -d中的json存在引号怎么处理?](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
1\将其改写为I'\''m就可以执行
2\
curl -u elastic:mypass -X GET "localhost:9200/_analyze?pretty" -d 'analyzer=standard&text=this is a'\''1 test'
3\
curl -u elastic:mypass -X GET "10.16.1.1:9200/Index_name/_search?pretty" -H 'Content-Type: application/json' -d '
{
"_source":["post_time","id","last_update_time"],
"query": {
"wildcard":{
"id":"*1998*"
}
}
}
'
curl -u elastic:mypass -X GET "127.0.0.1:9200/my_index/_cat/mapping?pretty"