比特彗星webgui远程推送下载,网盘解析HTTP直链开发使用js油猴解析脚本测试时被chrome浏览器跨域限制解决办法
比特彗星webgui远程推送下载,网盘解析HTTP直链开发使用js油猴解析脚本测试时被chrome浏览器跨域限制解决办法网页上如果因为浏览器跨域post不过去的话,简单的案例就是生成一个bat文件给用户下载到电脑上运行,实现电脑中不经过浏览器来post到webgui,例如调用curl指令去实现
bat内容例子,不过%26的参数&字段传递不过去,等一个大佬,初步猜测是curl的bug
@echo off
curl -v -H "User-Agent: youxiaohoubat/1.0" -H "Authorization: Basic YWRtaW46aXR6bXguY29t" http://127.0.0.1:1235/panel/task_add_httpftp_result -X POST -d url="https://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?abc%3D1%26abcd%3D1" -d save_path="D:/" -d file_name="20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk" -d connection="200" -d referrer="https://www.baidu.com/" -d user_agent="AmazonS3" -d cookie="wxi5sn892php8bmpanyjcmfqf4lkus62=bt14vwp54856ts0p4o5w8ox0cgcit5hs" -d mirror_url_list="https://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?%26%0Ahttps://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?%26%26%0Ahttps://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?%26%26%26%0Ahttps://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?%26%26%26%26"
pause
url字段我写的是apk?abc%3D1%26abcd%3D1,但是实际收到变成了
正确信息应该如图
暂时还不知道怎么解决curl丢失参数的问题,等会查下curl使用资料
尝试运行cmd框直接运行,发现正常,可以判断是bat的毛病
抓包了下bat产生的数据包,,可能某些字符被强制转义了,例如&&&&变成6666
url=https://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?abcD16abcdD1&save_path=D:/&file_name=20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk&connection=200&referrer=https://www.baidu.com/&user_agent=AmazonS3&cookie=wxi5sn892php8bmpanyjcmfqf4lkus62=bt14vwp54856ts0p4o5w8ox0cgcit5hs&mirror_url_list=https://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?6C:\Users\梦梦\Desktop\1.batAhttps://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?66C:\Users\梦梦\Desktop\1.batAhttps://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?666C:\Users\梦梦\Desktop\1.batAhttps://bh3rd-app.oss-cn-shanghai.aliyuncs.com/public/Android/20180329-android_versions_v2_2_the_Guardian_of_shenzhou_guofu.apk?6666
原来是bat的坑
BitComet比特彗星 bc专用下载超级链接例子 HTTP、磁力种子
https://bbs.itzmx.com/thread-99910-1-1.html
可以同时搭配webgui实现远程推送功能:https://bbs.itzmx.com/thread-99936-1-1.html
.......这就是你一直在忙的原因吗 66666666666666666666666
页:
[1]