Monday, April 04, 2011 at 1:05 AM.
rssCloudSuite.testing.testRestPleaseNotify
<<Changes <<8/11/09; 1:28:51 PM by DW <<Added various tests to verify new functionality. <<7/21/09; 12:41:45 PM by DW <<Created. bundle { //try it with get-style params local (apiurl = "http://rpc.rsscloud.org:5337/rsscloud/pleaseNotify", params); apiurl = apiurl + "?notifyProcedure=hello&port=5337&path=goodbye&protocol=http-post&url1="; apiurl = apiurl + string.urlencode ("http://static.lifeliner.org/dave/rss.xml"); s = tcp.httppost (apiurl); wp.newtextobject (s, @rssCloudSuite.testing.xmlresponse); xml.compile (string (rssCloudSuite.testing.xmlresponse), @rssCloudSuite.testing.xstruct)} <<bundle //try to register an http-post notification routine <<local (apiurl = "http://rpc.rsscloud.org:5337/rsscloud/pleaseNotify", params) <<new (tabletype, @params) <<params.notifyProcedure = "" <<params.port = 5337 <<params.path = "/hello" <<params.protocol = "http-post" <<params.url1 = "http://static.lifeliner.org/dave/rss.xml" <<s = tcp.httppost (apiurl, @params) <<wp.newtextobject (s, @rssCloudSuite.testing.xmlresponse) <<xml.compile (string (rssCloudSuite.testing.xmlresponse), @rssCloudSuite.testing.xstruct) <<bundle //try to register an xml-rpc notification routine <<local (apiurl = "http://rpc.rsscloud.org:5337/pleaseNotify", params) <<new (tabletype, @params) <<params.notifyProcedure = "rssCloud.hello" <<params.port = 5337 <<params.path = "/RPC2" <<params.protocol = "xml-rpc" <<params.url1 = "http://static.lifeliner.org/dave/rss.xml" <<s = tcp.httppost (apiurl, @params) <<wp.newtextobject (s, @rssCloudSuite.testing.xmlresponse) <<xml.compile (string (rssCloudSuite.testing.xmlresponse), @rssCloudSuite.testing.xstruct)
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.