POST 请求之你见
先来看段代码
public static function LocateGoogleMapApi(OperType:String,lac:int,cellid:int):void { //Alert.show(OperType+" 解析基站"); var postInfo:String = "{\"version\": \"1.1.0\",\"host\": \"maps.google.com\",\"access_token\": " + "\"2:k7j3G6LaL6u_lafw:4iXOeOpTh1glSXe\",\"radio_type\": \"gsm\",\"carrier\": \"Vodafone\",\"request_address\": " + "false,\"address_language\": \"zh_CN\",\"cell_towers\": [{\"cell_id\": "+cellid+",\"location_area_code\": "+lac+",\"age\": " + "0,\"signal_strength\": -60,\"timing_advance\": 5555}]}"; var urlReq:URLRequest = new URLRequest("http://www.google.com/loc/json"); urlReq.method = URLRequestMethod.POST; urlReq.data = postInfo; [color=#FF0000]BaseStatloader = new URLLoader();[/color] BaseStatloader.addEventListener(Event.COMPLETE, function(event:Event):void{BaseStatloader_complete(event,OperType)}); BaseStatloader.load(urlReq); }