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 can capture the http request data in wireshark. The POST Request without data will be changed to GET, see follow snapshot
Figure 1. The POST Request Without any data.
Figure 2.The POST Request With Data.
There is a note in help
Note: If running in Flash Player and the referenced form has no body, Flash Player automatically uses a GET operation, even if the method is set to URLRequestMethod.POST. For this reason, it is recommended to always include a “dummy” body to ensure that the correct method is used. But actually in air application, the POST request will be treated as GET if there is no body.


