now that I had myself problems with the http class, I may help a bit
the ->$readAll() does not work YET, I tried it manually with a global var and some time between it and it worked. That is because the data is not ready if you trigger it without control.
The easiest way is to implement a class yourself and trigger your script in an overwritten doneEvent or readyReadEvent
class("myhttp","http")
{
function doneEvent()
{
%answer = @$readAll();
echo -w=@%windowid %answer;
}
function config()
{
@$setHost($0);
@$get($1);
#the next is the window ID to echo it into the right window
@%windowid = $2;
}
}
%http = $new(myhttp);
%http->$config("<HOSTNAME>","<URLPATH",$channel($target));