Monday, November 08, 2010 at 12:04 AM.

system.verbs.builtins.mainResponder.testing.makeHttpRequest

<<10/3/99; 6:48:39 PM by DW
	<<Cleaned up, no longer displays the text in the web  browser, uses tcp.httpReadUrl to do the HTTP request.
mainresponder.init ();
if dialog.ask ("Enter URL for page you want to get:", @config.mainresponder.prefs.lasturl) {
	<<local (s = tcp.httpReadUrl (config.mainresponder.prefs.lasturl))
	local (urllist = string.urlsplit (config.mainresponder.prefs.lasturl));
	local (s = string.httpResultSplit (tcp.httpClient (server:urllist [2], path:urllist [3]), @scratchpad.httpheaders));
	edit (@scratchpad.httpheaders);
	edit (@scratchpad.httpresult);
	wp.newTextObject (s, @scratchpad.httpResult);
	wp.go (up, infinity)}



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.