Hello Group,
I still have a problem with the HTTPService.
It ignores the request parameters I pass to it.
Also, I set the request method to POST but my PHP
script shows me that the method is GET.
<mx:Script>
<![CDATA[ import mx.rpc.events.ResultEvent; import mx.rpc.http.mxml.HTTPService; private function SampleFunction(event:Event):void { var http:HTTPService; http = new HTTPService(); http.url = ""http://www.domain.com/my_xml.php">http://www.domain.com/my_xml.php"; http.method="POST"; // This is ignored and Flash sends GET http.useProxy = false; http.request = "testID=SomeIDNumber"; //This is ignored // I also tried "?testID=SomeIDNumber" but it is still ignored http.showBusyCursor = true; http.resultFormat = "xml"; http.addEventListener(ResultEvent.RESULT, xmlReceived); http.send(); // I also tried to pass the request like http.send("testID=SomeIDNumber") and http.send("?testID=SomeIDNumber") but it is still ignored } ]]> </mx:Script> Can anybody tell me what's wrong?
Thanks
Emery
__._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|