Then it would probably better for you to use HTTPObjects:
new HTTPObject(GetThePage).get("google.com", "/file.txt"); // Create the HTTPObject and tell it to fetch the page "google.com/file.txt
function GetThePage::onLine(%this, %line)
{
%this.page = %this.page NL %line; // Once we get a response, for every line we get, we want to add it all into a single buffer
}
function GetThePage::onDisconnect(%this)
{
doStuffWithPage(%this.page); // The server has disconnected us, we therefore have the whole page stored in %this.page
}