blob: e773470fbe7d26a22ea202221f1694335b37d12d [file] [log] [blame]
// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Pick a name that won't get denied, but that doesn't actually exist, and
// make sure it fails.
var req = new entd.http.Request("not-a-real-host.google.com");
req.onComplete = function complete(response)
{
println("HTTP COMPLETE. URL=" + response.url +
", CODE=" + response.code +
", CONTENT SIZE=" + response.content.length +
", HEADERS: " + response.headers.length);
// println("CONTENT:");
// println(response.content);
}
req.onTimeout = function timeout()
{
println("HTTP TIMEOUT");
}
req.onError = function error(errcode)
{
println("HTTP ERROR: " + errcode);
}
entd.onLoad =
function onLoad(manifest)
{
entd.http.GET(req);
}