curl -k http://202.108.57.65:11917/CFCP004 -X PSOT
模拟 XML POST请求
echo ‘<?xml version="1.0" encoding="UTF-8" ?>’|curl -X POST -H ‘Content-type:text/xml’ -d @- http://10.78.3.153:7013/qz/qy
curl https://gyl-test.bankofdl.com:9080/gateway-api/normal_user/login_standard -X POST -H "Content-Type:application/xml" -d '<?xml version="1.0" encoding="UTF-8" ?><Message><ICTRL><SERVICE_CODE>42300017</SERVICE_CODE><ORG_NODE_ID>423</ORG_NODE_ID><ORG_BRANCH_ID>1004</ORG_BRANCH_ID><ORG_TX_DATE>20240408</ORG_TX_DATE><ORG_TX_TIME>14:19:24</ORG_TX_TIME><GLO_SNO>20240408141924618496392</GLO_SNO><SVR_NODE_ID>1004</SVR_NODE_ID></ICTRL><Req><cstnm>测试供应商</cstnm><cstctftype>02</cstctftype><cstctfno>123456</cstctfno><corecstnm>测试开单企业</corecstnm><corecstctftype>02</corecstctftype><corecstctfno>123456</corecstctfno></Req></Message>'
模拟JSON POST 请求
curl http://10.78.3.153:7013/qz/qy -X POST -d ‘{“hello”: “world”}’ --header “Content-Type: application/json”
curl --location --request POST ‘http://10.0.124.40:10005/entrance/api’
–header ‘Content-Type: application/json’
–data ‘{“data”: {“condition”: {“fileId”:“00003cff9411431eb773d644d07b6ba0”},“field”:{“filePath”:" “}},“head”: {“bizCode”:“CIF1081157415895826432”,“clientIP”:“10.78.3.152”,“currentEntId”:”“,“reqDateTime”:“2023-04-20 10:13:34”,“reqUrl”:”/entrance/api",“serviceApplicationIP”:“10.78.3.152”,“serviceApplicationName”:“cif”,“terminalCode”: “jdh_ent”,“tradeCode”: “O1U01”,“tradeType”: “”,“userId”: “”}}’
查看本地外网ip
curl https://api.y.org
curl https://api.ipify.org
查看网络地址
nslookup sit0.jdh.com.cn 8.8.8.8