2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-03 15:02:29 +00:00

test token

This commit is contained in:
hu-weihua
2017-07-05 01:41:24 -04:00
parent 09e7964b5f
commit 994e811e8e

View File

@@ -156,8 +156,8 @@ sub send_back_comment{
}
}
print "[send_back_comment] method = $post_method to $post_url \n";
`curl -v -H "Authorization: token 7333caf3936a938ad0803e7a297423e43f69fb62" -X POST -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`;
print "[send_back_comment] method = $post_method to $post_url by token\n";
`curl -v -H "Authorization: token 7333caf3936a938ad0803e7a297423e43f69fb62" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`;
}
#--------------------------------------------------------