Re: Maximum xml Data Size: RCM4300 DC10-72
"Tom Collins tom-lnEA/wrDJtNWk0Htik3J/[email protected] [rabbit-semi]" <[email protected]> Fri, 19 Feb 2016 10:10:13 -0800
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Mike, What are you using to provide the "my_data1.xml" content from the Rabbit? You should be able to test with a direct request first to make sure the Rabbit can send the 30K XML file. What happens if you request "my_data1.xml" in the address bar of your browser? Does the entire file come through? Troubleshoot that first, and then work on the XMLHttpRequest() Javascript call. If you're using the cgi interface from HTTP.LIB, I believe you send individual chunks of the content, and use a specific return code indicating that there's more data to send. If you share your Rabbit code, we should be able to help you with the necessary changes. -Tom On Feb 19, 2016, at 3:10 AM, [email protected] [rabbit-semi] wrote: > Good day, > > I would like to know what the size limitation for sending xml data is? > I'm using XMLHttpRequest() to request the xml file. > I have been through the documentation and can't seem to find any (MACROS) settings for this? > > I can successfully send a small number of characters in xml. > But when I examine the packet sent (using Fiddler) from the RCM4300 I find that the data in the xml file is truncated if I go above 256bytes. > > I'm using the RCM4300 in a web server application. > Ideally I would like to send up to 30kbytes at a time. This is being used in a data logging application. > > Below is the webpage code that requests the xml file: > > var xmlhttp = new XMLHttpRequest(); > xmlhttp.onreadystatechange = function() { > if (xmlhttp.readyState === 4 && xmlhttp.status === 200) { > myFunction(xmlhttp); > } > }; > xmlhttp.open("GET", "my_data1.xml", true); // true= asynchronous. > xmlhttp.setRequestHeader("Content-Type", "text/xml"); > xmlhttp.send(null); > > > > Thanks in advance. > Mike > > > Posted by: [email protected]