- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
//try setting up POST request, if failed settle with GET
try {
if (url_variables == null || (params && params.method == URLRequestMethod.GET)) throw new ArgumentError();
url_request.data = url_variables;
url_request.method = URLRequestMethod.POST;
}
catch(er:Error) {
url_request.url = url;
url_request.method = URLRequestMethod.GET;
}
вот сервер на эксепшене