My app needs the "rendezvous" registration, so I need to post XML data to our server. I know roUrlTransfer is used for Http/Https request in Roku App. I also saw some simple examples, but I haven't figured out how to send XML data to a server? Appreciate it for any hint!
Asked
Active
Viewed 241 times
2 Answers
1
Did you try the method PostFromString
or AsyncPostFromString? You should convert the XML to a string (Escape
) and then post it.

Joe T
- 2,300
- 1
- 19
- 31
1
We can use "roXMLElement" to create XML object. Once XML Object is created we can use
XMLString = xmlObject.GenXML(true) to convert xml into string
Once the string is created we can use AsyncPostFromString to post the XML content. Also make sure in request header you add content-type as "application/xml"

Ajinkya
- 31
- 4