curl 发送http 请求

curl 模拟post请求
后面 >>aa.txt是将输出重定向,也可以不写
curl -H "Content-Type:application/json" -X POST --data '{"invoice_id":"051","bill_number":"1","doc_total":12,"file_dir":"/nfsc/EIS_CORE/ESG-TPI-CORE/BB01","remark":"","ext1":"","ext2":"","sys_code":"test_code"}' http://10.202.23.21:8880/bdpapp/invoicePath/path >>aa.txt

你可能感兴趣的:(elasticsearch)