示例#1
0
文件: Cgi.cs 项目: jsakamoto/bjd5
 public void Http11_Test()
 {
     UtilClient cl = new UtilClient(hostName, port);
     cl.Send("GET / HTTP/1.1\n\n");
     var s = cl.Recv();
     Assert.AreEqual(s, "HTTP/1.1 400 Missing Host header or incompatible headers detected.\r\n");
     cl.Dispose();
 }
示例#2
0
文件: Cgi.cs 项目: jsakamoto/bjd5
 public void Http10_Test()
 {
     UtilClient cl = new UtilClient(hostName, port);
     cl.Send("GET / HTTP/1.0\n\n");
     var s = cl.Recv();
     Assert.AreEqual(s, "HTTP/1.0 200 Document follows\r\n");
     cl.Dispose();
 }
示例#3
0
文件: Cgi.cs 项目: schifflee/bjd5
        public void Http11_Test()
        {
            UtilClient cl = new UtilClient(hostName, port);

            cl.Send("GET / HTTP/1.1\n\n");
            var s = cl.Recv();

            Assert.AreEqual(s, "HTTP/1.1 400 Missing Host header or incompatible headers detected.\r\n");
            cl.Dispose();
        }
示例#4
0
文件: Cgi.cs 项目: schifflee/bjd5
        public void Http10_Test()
        {
            UtilClient cl = new UtilClient(hostName, port);

            cl.Send("GET / HTTP/1.0\n\n");
            var s = cl.Recv();

            Assert.AreEqual(s, "HTTP/1.0 200 Document follows\r\n");
            cl.Dispose();
        }