mardi 24 janvier 2017

ActionScripts3 POST to URL issue

I'm trying to use API of SMSPVA.com, when i copy and paste URL to Firefox it return json values, but in Actionscripts3 wrong value appear in output. I thing my code is not right.

I want to POST data over URL and print response with "trace" in output window.

import flash.net.*;

function URLRequest_method() 
{
    var url:String = "http://ift.tt/2jMAY6R";
    var request:URLRequest = new URLRequest(url);
    var variables:URLVariables = new URLVariables();
    request.method = URLRequestMethod.POST;

    trace(request);
}
URLRequest_method();

Aucun commentaire:

Enregistrer un commentaire