Tuesday, August 18, 2009 at 7:29 PM.

myTwitterProfileSuite.getEnclosureData

on getEnclosureData (url, adrtype, adrlength) {
	<<Changes
		<<5/26/09; 3:00:08 PM by DW
			<<Created. 
	local (urllist = string.urlSplit (url), server = urllist [2], path = urllist [3], headers);
	string.httpResultSplit (tcp.httpClient (server:server, path:path, flJustHeaders:true), @headers);
	adrlength^ = number (headers.["Content-Length"]);
	adrtype^ = headers.["Content-Type"]}
<<bundle //test code
	<<getEnclosureData ("http://mp3.morningcoffeenotes.com/reboot09May24.mp3", @scratchpad.type, @scratchpad.length)



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.