最近闲着没事搭建了个TX滑块验证码服务,C#写的.
接口是rest接口
提交任务POST
http://47.104.132.20:19090/task/addTask
提交数据:
{
"url": "https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?style=simple&aid=16&uin=3557247785&sid=2858167361258078454&cap_cd=tPg7vp9-AqmbS0Eh4HFqKnsIeEyIIrq4ZZiKEWoswjmcCRoLKi2Z_w**&clientype=1&apptype=2"
}
返回uuid,后期根据这个uuid取ticket
响应:
{"code":200,"msg":"9ead535b-74aa-4287-bfa4-7bcac8972a92"}
获取ticket结果:
http://47.104.132.20:19090/task/getTaskRes
提交数据:
{
"uuid": "9ead535b-74aa-4287-bfa4-7bcac8972a92"
}
响应:
{"code":200,"msg":"操作成功","data":{"errorCode":"0","randstr":"@m85","ticket":"t03IJ9ZRN1OtgWkA_Olbem0xEuByBHKYu1UNJ8PrRPcj3w6nUEZQrRAsLmCXDWMty0d496Zf9gy5qJpiBYuh29X4A0mWiOtB2cYEz9lQ_YO_vVjPUOdbAOp93b-ZAW5Y5Ar","errMessage":"","sess":"","uuid":"9ead535b-74aa-4287-bfa4-7bcac8972a92"}}
获取任务执行结果最好3秒请求一次,正常5秒内返回结果. 30s超时.
fiddler截图:
添加任务包数据包:
获取任务执行结果数据包: