public void sendReply_cgibin_latency_cgi(MyHTTPServer socket, List<HTTPRequestData> getData, String cookie) throws Exception
	{
		try
		{
			int width = 920;
			HTTPRequestData widthData = MyHTTPServer.findRecord(getData, "width");
			if (widthData != null && widthData.getData() != null)
				width = Integer.valueOf(widthData.getData());

			int height = 150;
			HTTPRequestData heightData = MyHTTPServer.findRecord(getData, "height");
			if (heightData != null && heightData.getData() != null)
				height = Integer.valueOf(heightData.getData());

			boolean withMetaData = true;
			HTTPRequestData withMetaDataData = MyHTTPServer.findRecord(getData, "metadata");
			if (withMetaDataData != null && withMetaDataData.getData() != null)
				withMetaData = URLDecoder.decode(withMetaDataData.getData(), defaultCharset).equalsIgnoreCase("true");

			String header;
			if (cookie == null)
				header = "HTTP/1.0 200 OK\r\nConnection: close\r\nContent-Type: image/png\r\n\r\n";
			else
				header = "HTTP/1.0 200 OK\r\nSet-Cookie: " + cookie + "\r\nConnection: close\r\nContent-Type: image/png\r\n\r\n";
			socket.getOutputStream().write(header.getBytes());
			BufferedImage sparkLine = coffeeSaint.getLatencyGraph(width, height, withMetaData);
			ImageIO.write(sparkLine, "png", socket.getOutputStream());
		}
		catch(Exception e)
		{
			// really don't care if the transmit failed; browser
			// probably closed session
			// don't care if we could display the image or not
		}
		finally
		{
			socket.close();
		}
	}