sendBeacon = function (content) {
        var options, req,
            beacon = program.beacon,
            
            // request callback (response)
            response = function (res) {
                if (program.verbose) {
                    info = {
                        'status': res.statusCode,
                        'headers': res.headers,
                        'body': ''
                    };
                    res.setEncoding('utf8');
                    res.on('data', function (chunk) {
                        info.body += chunk;
                    });
                    res.on('end', function () {
                        prettyPrint([content, info]);
                    });
                } else {
                    prettyPrint(content);
                }
            };
        
        // normalize beacon url
        if (beacon.indexOf('http') !== 0) {
            prefix = 'http:';
            if (beacon.indexOf('//') !== 0) {
                prefix += '//';
            }
        }
        beacon = url.parse(prefix + beacon);

        // set request options
        options = {
            host: beacon.hostname, 
            port: beacon.port || 80,
            path: beacon.pathname + (beacon.search || ''),
            method: 'POST',
            headers: {
                'Content-Type': 'application/json; charset=UTF-8',
                'Content-Length': content.length
            }
        };

        // build request 
        req = http.request(options, response);

        // report errors
        req.on('error', function (e) {
            showError('problem with request: ' + e.message);
        });

        // write data to request body
        req.write(content);
        req.end();
    }
Send beacon.
@param {Object|String} content The YSlow results to be beaconed.