Yes I can parse the XML but I can't get the contents of the post! What I need is the WebDNA equivalent of---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
$postText =3D =file_get_contents('php://input');
I may have to just write this in php :(
What the above code does is takes the file contents, something I can't seem to do via webdna.
Unless someone has an idea on how to grab the raw POST of an incoming post that is not set to a form variable.
Thanks! Olin
Stuart Tremain wrote:OlinIf you are receiving XML back, you will need to parse the XMLhttp://www.webdna.us/p=age.dna?numero=3D284On 13/06/2011, at 12:43 PM, Olin Lagon wrote:Aloha all, am trying to work with an API that =posts an XML doc. I can get it to post but it is not setting the XML to =a formvariable. Anyone know how I can grab the contents of the post?Here is the test code to show what is hitting our server[writefile log.txt]http header---------------[ListMIMEHeaders][name] =3D [value][/ListMIMEHeaders]form vars---------------[formvariables][name] =3D [value][/formvariables][/writefile]And here is the response. As you can see the form vars are empty :(Thanks! Olinhttp header---------------HOST =3D www.kanuhawaii.orgConnection =3D CloseContent-Type =3D application/xmlmsg-timestamp =3D 1307900329Content-Length =3D 81form vars------------------------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
Yes I can parse the XML but I can't get the contents of the post! What I need is the WebDNA equivalent of---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
$postText =3D =file_get_contents('php://input');
I may have to just write this in php :(
What the above code does is takes the file contents, something I can't seem to do via webdna.
Unless someone has an idea on how to grab the raw POST of an incoming post that is not set to a form variable.
Thanks! Olin
Stuart Tremain wrote:OlinIf you are receiving XML back, you will need to parse the XMLhttp://www.webdna.us/p=age.dna?numero=3D284On 13/06/2011, at 12:43 PM, Olin Lagon wrote:Aloha all, am trying to work with an API that =posts an XML doc. I can get it to post but it is not setting the XML to =a formvariable. Anyone know how I can grab the contents of the post?Here is the test code to show what is hitting our server[writefile log.txt]http header---------------[listmimeheaders][name] =3D [value][/ListMIMEHeaders]form vars---------------[formvariables][name] =3D [value][/formvariables][/writefile]And here is the response. As you can see the form vars are empty :(Thanks! Olinhttp header---------------HOST =3D www.kanuhawaii.orgConnection =3D CloseContent-Type =3D application/xmlmsg-timestamp =3D 1307900329Content-Length =3D 81form vars------------------------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...