Sunday, March 27, 2011 at 12:00 AM.


on httpClient (endpoint, adrparams, method="GET") {
		<<3/26/11; 9:42:54 PM by DW
			<<When calling string.urlEncode, pass the second optional param for the "full" encode. Otherwise characters like @ aren't encoded, and the signatures are declared invalid.
		<<3/26/11; 10:13:43 AM by DW
			<<New optional parameter, method, default GET.
		<<2/12/09; 12:21:41 PM by DW
	local (url = endpoint + "?");
	for adr in adrparams {
		url = url + nameof (adr^) + "=" + string.urlencode (adr^, true) + "&"};
	url = string.delete (url, sizeof (url), 1);
	<<scratchpad.urloauth = url
	return (tcp.httpreadurl (url, method:method))}

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.