2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-16 16:20:22 +00:00

token test1

This commit is contained in:
hu-weihua
2017-07-05 02:18:42 -04:00
parent d653535de2
commit c4d2215065

View File

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