Anyone have example code that shows how to post an XML document to a URL?
Justin
Post XML document to URL
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Post XML document to URL
I found a command like the following... I'll give it a try.
Code: Select all
post data to URL destinationURL
Re: Post XML document to URL
Hi Justin,
You need a script similar to the following:
You may need to url encode the data:
Best,
Mark
You need a script similar to the following:
Code: Select all
put "xml=" & url "binfile:~/documents/somefile.xml" into myData
post myData to URL "http://www.domain.com/whatever.cgi"
Code: Select all
put url "binfile:~/documents/somefile.xml" into myData
put "xml=" & urlEncode(mydata) into myData
post myData to URL "http://www.domain.com/whatever.cgi"
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode