read loop changed a bit, need to break at end of headers to go to second loop, but for now the entire page prints.