2020年11月10日
摘要: 提交key1=value1&key2=value2类型参数: 方法一: $textmod="key=$key&content=$data&touser=$touser" Invoke-WebRequest -UseBasicParsing $url -Method POST -Body $textm 阅读全文
posted @ 2020-11-10 20:07 momingliu11 阅读(4555) 评论(0) 推荐(0) 编辑
摘要: $someString = "key=MTZl&batch=1&content=nihao1052020-11-10" $md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider $utf8 = 阅读全文
posted @ 2020-11-10 19:38 momingliu11 阅读(1678) 评论(0) 推荐(0) 编辑
摘要: import java.security.MessageDigest def today = new Date().format("yyyy-MM-dd") def snstr = ‘a=$a&b=$b&today=$today’ def sn = MessageDigest.getInstance 阅读全文
posted @ 2020-11-10 11:23 momingliu11 阅读(1814) 评论(0) 推荐(0) 编辑
摘要: #!groovy def call(reqMode,url,reqBody){ //调用httpRequest插件 if(reqMode == 'POST'){ response = httpRequest customHeaders: [[name: 'Content-Type', value: 阅读全文
posted @ 2020-11-10 11:20 momingliu11 阅读(4680) 评论(0) 推荐(0) 编辑
摘要: import jenkins,requests,urllib jenkins_server_url = 'http://jenkins.jk.com/' user_id = 'approver' api_token = '1187e29' # api_token = 'password' job_n 阅读全文
posted @ 2020-11-10 11:11 momingliu11 阅读(715) 评论(0) 推荐(0) 编辑