Saturday, April 02, 2011 at 9:08 PM.

radio2Suite.testing.newPostWithEnclosure

<<Changes
	<<1/16/11; 4:17:03 PM by DW
		<<Created. 
local (apiurl = "http://my.reallysimple.org/api/newPost?", title = "U.S. Blues", feed = "linkblog.xml");
local (description = "I'm Uncle Sam. That's who I am. I've been hiding out. In a rock and roll band.");
local (link = "http://artsites.ucsc.edu/GDead/agdl/usblues.html");
local (enclosure = "http://mp3.morningcoffeenotes.com.s3.amazonaws.com/U.S. Blues.mp3");
on addparam (name, value) {
	apiurl = apiurl + name + "=" + string.urlencode (value) + "&"};
addparam ("feed", feed);
addparam ("title", title);
addparam ("link", link);
addparam ("description", description);
addparam ("enclosure", enclosure);
apiurl = string.delete (apiurl, sizeof (apiurl), 1);
scratchpad.apiurl = apiurl;
tcp.httpreadurl (apiurl, username:"dave", password:config.radio2.users.dave.prefs.security.password)



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.