Created
March 8, 2014 07:54
-
-
Save taoso/9426971 to your computer and use it in GitHub Desktop.
curl发送报警通知
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl -H "Content-Type: application/json" -d '{"username":"test20","message":"测试"}' http://192.168.8.20:3000/notice -v | |
* Hostname was NOT found in DNS cache | |
* Trying 192.168.8.20... | |
* Connected to 192.168.8.20 (192.168.8.20) port 3000 (#0) | |
> POST /notice HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: 192.168.8.20:3000 | |
> Accept: */* | |
> Content-Type: application/json | |
> Content-Length: 40 | |
> | |
* upload completely sent off: 40 out of 40 bytes | |
< HTTP/1.1 202 Accepted | |
< Connection: keep-alive | |
< Transfer-Encoding: chunked | |
< | |
* Connection #0 to host 192.168.8.20 left intact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment