URLRequest 请求参数设置
程序员文章站
2022-03-19 18:03:27
...
var request:URLRequest = new URLRequest("http://");
request.method = URLRequestMethod.GET or URLRequestMethod.POST; //请求方式
var variables: URLVariables = new URLVariables();
variables.status = “参数内容”;
request.data = variables;
request.requestHeaders = new Array(new URLRequestHeader("Authorization","")); //追加到HTTP 请求的 HTTP 请求标头的数组