The flash.net.URLLoader will change your request method to GET.
The URLLoader of flash will change your URLRequest method to GET if your request’s data property is empty. The test code is simple.
private function testPostWithEmptyData():void
{
var urlLoader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest();
req.url = “http://dict.cn/POSTWithoutData”;
req.method = URLRequestMethod.POST;
urlLoader.load(req);
}
private function testPostWithData():void
{
var urlLoader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest();
req.url = “http://dict.cn/POSTWithData”;
req.method = URLRequestMethod.POST;
req.data = new URLVariables(“q=hello”);
urlLoader.load(req);
}
Then you [...]
