|
|
Lsky | 文本型 | | |
file | 文本型 | | | | url | 文本型 | | | | tokens | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | Post | 类_POST数据类_字节集 | | | Header | 类_POST数据类 | | | data | 文本型 | | | boundary | 文本型 | | | Json | zyJsonValue | | |
boundary = 取重复文本 (4, “-”) + “WebKitFormBoundary” + 文本_取随机字符 (16, 位或 (1, 2, 4 )) Header. 置值 (“Content-Type”, “multipart/form-data;boundary=” + boundary )Header. 添加 (“Authorization ”, tokens, )Post. 添加 (“file”, 读入文件 (file ), “image/” + 文本_取右边 (文件_取扩展名 (file ), “.”, , ), 文件_取文件名 (file, 真)) data = 编码_Utf8到Ansi (网页_访问_对象 (url, 1, , , , Header. 获取协议头数据 (), , , , Post. 获取Post数据 (boundary, ), , , , , , , , , )) 如果真 (data = “”) 返回 (“”) 返回 (data )
|
|