The more I play with this, the more I am convinced that it is acting wrong because of Flex. I am watching the Apache server access.log as the data goes by. And I just can't figure this out. My apologies for the cross-post with Flash-Tiger group but I haven't heard anything and thought it might be more appropriate here if Flex is causing the error.
I am working from the example in the Actionscript 3 cookbook chapter 20.13 trying to learn how to properly send XML data to a server-side script. I have tried this a couple ways but haven't been able to get past xml parsing errors with the basic HTTPService send. And to compound matters, I am trying to learn Flex at the same time. This code is from chapter 20.13 but to get any data to pass I have to switch it from a .POST to a .GET. From what I have read, the .POST is the right way. Has anybody been through this? Any advice greatly appreciated. var request:URLRequest = new URLRequest( "/saveResults.php" ); // Set the data property to the dataToSave XML instance to send the XML // data to the server request.data= dataToSave; // Set the contentType to signal XML data being sent request.contentType = "text/xml"; // Use the post method to send the data request.method = URLRequestMethod.POST; // Create a URLLoader to handle sending and loading of the XML data var loader:URLLoader = new URLLoader( ); // When the server response is finished downloading, invoke handleResponse loader.addEventListener( Event.COMPLETE, handleResponse ); // Finally, send off the XML data to the URL loader.load( request ); } Thanks, Imogene

