Skip to content

Instantly share code, notes, and snippets.

@taoso
Created March 8, 2014 07:54
Show Gist options
  • Save taoso/9426971 to your computer and use it in GitHub Desktop.
Save taoso/9426971 to your computer and use it in GitHub Desktop.
curl发送报警通知
# 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