Cookie = “csrftoken=ZHebH91RlMvtsX9MCY9suKef0yQop1lw; sessionid=yima79u5zalg3u5cp3eck0r808kq06gk”
bound = 文本_取随机字母 (2, 2) + 文本_取随机数字 (1, 0) + 文本_取随机字母 (13, 2)
xyt = “Host: …………” + #换行符 + “Connection: keep-alive” + #换行符 + “Accept: application/json, text/javascript, */*; q=0.01” + #换行符 + “X-Requested-With: XMLHttpRequest” + #换行符 + “User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36” + #换行符 + “Referer: ………………/” + #换行符 + “Accept-Language: zh-CN,zh;q=0.9”
str = 到文本 (网页_访问_对象 (“………………/api2/repos/?type=mine&_=” + 时间_取现行时间戳 (假), 0, , Cookie, , xyt))
id = 文本_取出中间文本 (str, “id” + #引号 + “: ” + #引号, #引号)
调试输出 (id)
str = 到文本 (网页_访问_对象 (“………………/ajax/repo/” + id + “/file_op_url/?op_type=upload&path=%2F&_=” + 时间_取现行时间戳 (假), 0, , Cookie, , xyt))
url = 文本_取出中间文本 (str, “url” + #引号 + “: ” + #引号, #引号)
调试输出 (url)
xyt = “Host: …………” + #换行符 + “Connection: keep-alive” + #换行符 + “Origin: ………………” + #换行符 + “Access-Control-Request-Method: POST” + #换行符 + “User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36” + #换行符 + “Accept: */*” + #换行符 + “Accept-Language: zh-CN,zh;q=0.9”
网页_访问_对象 (url, 4, , Cookie, , xyt)
data = 到字节集 (#常量2)
data = 子字节集替换 (data, 到字节集 (“{filename}”), 到字节集 (文本_取随机字母 (5)), , )
data = 子字节集替换 (data, 到字节集 (“{filename}”), 到字节集 (文本_取随机字母 (5)), , )
data = 子字节集替换 (data, 到字节集 (“{file}”), 读入文件 (“C:\Users\秋\Desktop\5.txt”), , )
xyt = “Host: …………” + #换行符 + “Connection: keep-alive” + #换行符 + “Content-Length: {Length}” + #换行符 + “Accept: application/json, text/javascript, */*; q=0.01” + #换行符 + “Origin: ………………” + #换行符 + “User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36” + #换行符 + “Content-Type: multipart/form-data; boundary=------WebKitFormBoundaryNj4xQg5BtMV7yu63” + #换行符 + “Referer: ………………/” + #换行符 + “Accept-Language: zh-CN,zh;q=0.9”
xyt = 子文本替换 (xyt, “{Length}”, 到文本 (取字节集长度 (data)), , , 假)
str = 到文本 (网页_访问_对象 (url, 1, , Cookie, , xyt, , , , data))
下一篇 超简单的多线程注册例子