我正在使用 flex/actionscript。我创建了一个具有以下路径http://192.168.0.110/cgi/reg.cgi的网络服务?当我运行上面的网址时,它工作正常。但是当我使用 httpservice 和 send 方法使用它时,它给了我错误。事件:registerFailure 错误描述:HTTP 更新错误
mHttpService = new HTTPService();
mHttpService.url = mWebServiceUrl;
mHttpService.method = "POST";
mHttpService.addEventListener("result", httpResult);
mHttpService.addEventListener("fault", httpFault);
var request:Object = new Object();
request.username = user;
request.identity = id;
mHttpService.cancel();
mHttpService.send(request);