改变 HTTP 方法(GET POST PUT 等)
该 URLRequestMethod 类包含的各种请求类型可以使常数。这些常量将分配给 URLRequest 的 method 属性:
var request:URLRequest = new URLRequest('http://someservice.com');
request.method = URLRequestMethod.POST;
请注意,只有
GET和POST在 AIR 运行时之外可用。
该 URLRequestMethod 类包含的各种请求类型可以使常数。这些常量将分配给 URLRequest 的 method 属性:
var request:URLRequest = new URLRequest('http://someservice.com');
request.method = URLRequestMethod.POST;
请注意,只有
GET和POST在 AIR 运行时之外可用。