http.addheader的正确用法

import console;
import inet.http

var http = inet.http();
http.addHeaders = {
[‘Accept-Encoding’] = ‘gzip, deflate, br’;
[‘Accept-Language’] = ‘zh-CN,zh;q=0.9’;
[‘User-Agent’] = ‘AArdio/14.10’
}
http.post(“http://httpbin.org”,”ok”)

console.pause(true);

发表评论

电子邮件地址不会被公开。 必填项已用*标注