目录:
- 1、发送get请求带请求头
- 2、发送post请求带请求头带参数
1、发送get请求带请求头
curl -X GET "http://localhost:8080/onlinePreviewCallbackApiManagement/v1/3rd/file/info" -H "accept: */*" -H "X-Weboffice-File-Id: 123"
2、发送post请求带请求头带参数
curl -X POST "http://localhost:8080/onlinePreviewCallbackApiManagement/v1/3rd/file/view/notify" -H "accept: */*" -H "User-Agent: 111" -H "X-Weboffice-File-Id: 222" -H "X-Weboffice-Token: 333" -H "Content-Type: application/json" -d "{\"body\":{\"active\":0,\"counts\":0,\"detail\":\"string\",\"file_id\":\"string\",\"filesize\":0,\"filetype\":\"string\",\"maxcounts\":0,\"operated_time\":0,\"permission\":\"string\",\"result\":\"string\",\"userid\":\"string\"},\"cmd\":\"string\"}"
测试可行,后期需要可以照此发送你的请求。