Home | History | Annotate | Download | only in http

Lines Matching refs:POST

164 			"POST / HTTP/1.1\r\n" +
189 if req.Method != "POST" {
191 req.Method, "POST")
198 if req.Method != "POST" {
200 req.Method, "POST")
1708 // Note using r.FormValue("readbody") because for POST
1736 _, err := fmt.Fprintf(conn, "POST /?readbody=%v HTTP/1.1\r\n"+
1804 "POST / HTTP/1.1\r\n"+
1847 "POST / HTTP/1.1\r\n"+
1862 t.Errorf("post-WriteHeader, read buffer length is %d; expected about 1MB", conn.readBuf.Len())
1987 conn.readBuf.WriteString("POST / HTTP/1.1\r\n" +
1998 "POST / HTTP/1.1\r\n"+
2058 conn.readBuf.WriteString("POST /public HTTP/1.1\r\n" +
2089 conn.readBuf.WriteString("POST /public HTTP/1.1\r\n" +
2217 "POST /public HTTP/1.1\r\n" +
2622 req, err := NewRequest("POST", cst.ts.URL, strings.NewReader(""))
2632 t.Fatalf("client post #%d: %v", i, err)
2917 req, _ := NewRequest("POST", cst.ts.URL, io.LimitReader(countReader{neverEnding('a'), nWritten}, limit*200))
2919 // Send the POST, but don't care it succeeds or not. The
3010 req := []byte(fmt.Sprintf("POST / HTTP/1.1\r\nHost: foo.com\r\nContent-Length: %d\r\n\r\n", bodySize))
3303 fmt.Fprintf(conn, "POST / HTTP/1.1\r\nHost: foo\r\nContent-Length: %d\r\n\r\n%s",
3435 rw.Write([]byte("post-flush"))
3453 rw.Write([]byte("post-flush"))
3743 req, err := NewRequest("POST", cst.ts.URL, io.LimitReader(neverEnding('a'), size))
3866 req2, _ := NewRequest("POST", backend.ts.URL, req.Body)
3909 req, _ := NewRequest("POST", proxy.ts.URL, io.LimitReader(neverEnding('a'), bodySize))
3955 _, err = conn.Write([]byte("POST / HTTP/1.1\r\nConnection: close\r\nHost: foo\r\nContent-Length: 100000\r\n\r\n"))
4404 req := []byte("POST / HTTP/1.1\r\nHost: golang.org\r\nContent-Length: 3\r\n\r\nABC" +
4501 "POST / HTTP/1.1\r\n" +