Saturday, March 26, 2011 at 10:00 PM.
system.verbs.apps.OAuth.httpClient
on httpClient (endpoint, adrparams, method="GET") { <<Changes <<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 <<Created. 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.