quote character problem while sending XML data in action script 3

I use following method to send XML data to server but it seems quote characters disappears in attributes and php can't detect attributes! :'(

public function sendXml(url:String, xmlData:String){ var req:URLRequest = new URLRequest(url); req.contentType = "text/xml"; req.data = xmlData; req.method = URLRequestMethod.GET; navigateToURL(req); }

I use following url: http://localhost/mysite/index.php?xml= and data append to end of url.

Any sample code will be great, Thanks in advance

-------------Problems Reply------------

If you setting the XML as a URL param, be sure to encode the string before request.

Following should do:

trace(escape(str));

Category:php Views:0 Time:2011-03-23

Related post

  • how to adjust padding between paragraphs in xml data using action script 3..? 2011-03-09

    Its me again come up with another question, how to adjust padding between each paragraphs in AS3..? Actually I'll show you an example that I've coded now. style.setStyle(".readmore", {fontWeight:"normal", color:"#6184b7", fontSize:11}); style.setStyl

  • Problem with POSTing XML data to an API using Java 2010-06-29

    I'm having problem with sending XML-data using HTTP POST to an API. If I send well formatted XML, I get an error message: Server Exception: Cannot access a closed Stream If the XML isn't well formatted, I get HTTP 500. And if I just send an empty str

  • How to send XML Data as Request using XML Web Service 2009-06-12

    I need to send XML data to the webservice running on the host server. This webservice provides an RPC/DCE interface with a single method “XmlTransaction” that takes two parameters: a Transaction Control XML document and a Request XML document. The re

  • Interoperable way to send XML data in WCF? 2010-08-17

    I'm using System.Xml.XmlElement as a parameter for sending XML data in WCF. Is this generally the interoperable way to send XML data in WCF, so that, for example, a PHP or Java Web Service will understand it if I'll send it from a WCF Client? I've re

  • What is the best way to send XML data to webservices jaxws 2010-10-28

    What is the best way to send XML data to web services jax-ws? One of the way I could make out is to convert xml into String from client side and send it as a String to WebService. I don't think this is the best way / best practice . --------------Sol

  • Problem in sending XML with flash 2011-03-24

    I want to send xml data to php page my xml in flash is that for examle: <level id="1" mark="10"><page id="12">HI..</page></level> i send it,but at the URL i see this: ../inex.php?xml=<level id=1 mark=10><page id=12

  • Send XML-data from an iPad 2 to PC over bluetooth 2011-10-14

    Is it possible to send xml-data between a Windows XP PC and an iPad 2 via bluetooth? And if so: how? And if not, can it be done via cable? --------------Solutions------------- No. Both Bluetooth and docking ports on iOS devices (iPads and iPhones) is

  • There was a problem retreiving the XML data 2013-05-28

    When trying to access certain web apps I get the following error message: "There was a problem retreiving the XML data. An Exception occurred in the script. Error name: Error Message: Automation server can't create Object Anyone have any idea how i f

  • how to send http post "multipart/form-data" in action script? 2009-12-06

    <form ENCTYPE="multipart/form-data" action=" how to send http post "multipart/form-data" in action script? function PostTest():void { var loader : URLLoader = new URLLoader(); var request : URLRequest = new URLRequest(foolowUp); var variables : UR

  • problem with sending xml via telnet and socket 2011-06-23

    So, I pass data in xml via socket. When I have run server side, I open cmd and execute command "telnet localhost 999". In this moment new thread are started and in this thread I pass input stream in Stax parser. On cmd I input simple xml file (copy-p

  • Sending xml data from one server to another 2009-01-29

    Can anyone tell me the best way to send some xml data from one server to another in an asp.net application. Basically in one application on a certain condition I want to trigger the sending of some xml values to another receiving asp.net application

  • send XML data to server from JS and get XML parameter 2009-08-20

    In Javascript I can send XML string to JSP server (XmlAction.jsp): Javascript Code: var xmlDocument = "<?xml version="1.0" encoding='ISO-8859-1'?> <Customer> ....... </Customer> " var httpRequest; httpRequest = new XMLHttpRequest();

  • ASP.NET website problem while requesting XML data from remote server 2009-09-29

    I am writing code in asp.net to get XML data from external webserver. *.cs Code connection string: URL of external(third party) server for XML data WebRequest req = WebRequest.Create(connectionString); req.Proxy = WebProxy.GetDefaultProxy(); req.Prox

  • Struts 2: Send XML data to server from client? 2010-08-25

    I have a xml data in the client. I send it to server. Then process it in server. But i get a fatal error. Here is the javascript code: console.log($.isXMLDoc(xmlData)); // prints true $.ajax({ url: 'foo.bar' , processData: false , data: xmlData , suc

  • Problem with passing xml data to webservice and return the xml file as result back from ajax -jquery call in clientside 2010-09-02

    I have jquery ajax call to webservice for which i am passing xml parameters as data ,when i run the code the flow is not reaching webservice GetList method at all, can anyone track what may be the problem should i make any changes to my webconfig fil

  • Problem with posting xml data to .net webservice asmx 2010-09-03

    I have the following code which is trying to post xml constructed data to webservice .asmx but xml constructed data is not reaching webservice file at all.when i make ajax call control is not moving to webservice file at all.Is their any problem with

  • NSXML parser : problem in parsing xml data 2010-12-02

    I am working on an iPhone application where I am getting data from server using php webservice and need to show records in table view. All was going well, but today i compiled code and run in simulator and found data is not parsing by parser while it

  • WP7 Help with XML Web Service! (How to send XML Data as Request using XML Web Service and receive and display the data) 2010-12-25

    I am trying to figure out how to make apps, i got all the basics and even more but what i want to no is how to create an app that you have a search bar and when you search it sends a requests a xml file from a server, the server send back the xml fil

  • Sending XML data via HTTP POST to IHttpHandler causes HttpRequestValidationException 2011-01-20

    I'm writing an IHttpHandler implementation that will receive XML data sent through a regular HTTP POST from another website. Here's a prototype of the implementation: public class MyHandler : IHttpHandler { public void ProcessRequest(HttpContext cont

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.150 (s). 11 q(s)