I need to load text from a webpage using www

This code doesnt work -

import System.IO;
//var fileName = “foo.txt”;

// Get the latest webcam shot from outside “Friday’s” in Times Square
var url = “http://beatit123.hostzi.com/testing”;

function Start () {

// Start a download of the given URL

var www : WWW = new WWW (url);
// Wait for download to complete
yield www;

print (www.text);

}

Can anyone understand the issue using the sample webpage - http://beatit123.hostzi.com/testing

Any help would be appreciated

you are not waiting for the webserver to answer; use yield like so:
var url = “http://images.earthcam.com/ec_metros/ourcams/fridays.jpg”;
function Start () {
// Start a download of the given URL
var www : WWW = new WWW (“http://beatit123.hostzi.com/testing”);

    // Wait for download to complete
    yield www;

    // print text
    print(www.text);
}