"HttpConnection: close","19.6.2 Keep-alive close")+1;
"Connection: close","19.6.2 Keep-alive close")+1;
    public void t_e_s_t_19_6()    {                try        {            TestListener listener = new TestListener();            String response;            int offset=0;            offset=0;            response=listener.getResponses("GET /R1 HTTP/1.0\n"+                                           "\n");            offset=checkContains(response,offset,                                   "HTTP/1.1 200 OK\015\012","19.6.2 default close")+10;            checkNotContained(response,offset,                                "HttpConnection: close","19.6.2 not assumed");                        offset=0;            response=listener.getResponses("GET /R1 HTTP/1.0\n"+                                           "Host: localhost\n"+                                           "HttpConnection: keep-alive\n"+                                           "\n"+                                                                                      "GET /R2 HTTP/1.0\n"+                                           "Host: localhost\n"+                                           "HttpConnection: close\n"+                                           "\n"+                                           "GET /R3 HTTP/1.0\n"+                                           "Host: localhost\n"+                                           "HttpConnection: close\n"+                                           "\n");            offset=checkContains(response,offset,                                   "HTTP/1.1 200 OK\015\012","19.6.2 Keep-alive 1")+1;            offset=checkContains(response,offset,                                   "HttpConnection: keep-alive",                                   "19.6.2 Keep-alive 1")+1;                        offset=checkContains(response,offset,                                   "<html>",                                   "19.6.2 Keep-alive 1")+1;                        offset=checkContains(response,offset,                                   "/R1","19.6.2 Keep-alive 1")+1;                        offset=checkContains(response,offset,                                   "HTTP/1.1 200 OK\015\012","19.6.2 Keep-alive 2")+11;            offset=checkContains(response,offset,                                   "HttpConnection: close","19.6.2 Keep-alive close")+1;            offset=checkContains(response,offset,                                   "/R2","19.6.2 Keep-alive close")+3;                        assertEquals("19.6.2 closed",-1,response.indexOf("/R3"));        }        catch(Exception e)        {            e.printStackTrace();            assertTrue(false);        }    }