Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for REQUEST_METHOD (0.4 sec)

  1. src/net/http/cgi/host_test.go

    		"env-PATH_INFO":         "",
    		"env-QUERY_STRING":      "foo=bar&a=b",
    		"env-REMOTE_ADDR":       "1.2.3.4",
    		"env-REMOTE_HOST":       "1.2.3.4",
    		"env-REMOTE_PORT":       "1234",
    		"env-REQUEST_METHOD":    "GET",
    		"env-REQUEST_URI":       "/test.cgi?foo=bar&a=b",
    		"env-SCRIPT_FILENAME":   os.Args[0],
    		"env-SCRIPT_NAME":       "/test.cgi",
    		"env-SERVER_NAME":       "example.com",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 18:29:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/net/http/cgi/cgi_main.go

    	for i := range p {
    		p[i] = byte(b)
    	}
    	return len(p), nil
    }
    
    // childCGIProcess is used by integration_test to complete unit tests.
    func childCGIProcess() {
    	if os.Getenv("REQUEST_METHOD") == "" {
    		// Not in a CGI environment; skipping test.
    		return
    	}
    	switch os.Getenv("REQUEST_URI") {
    	case "/immediate-disconnect":
    		os.Exit(0)
    	case "/no-content-type":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/http/httpproxy/proxy.go

    	// ignored.
    	NoProxy string
    
    	// CGI holds whether the current process is running
    	// as a CGI handler (FromEnvironment infers this from the
    	// presence of a REQUEST_METHOD environment variable).
    	// When this is set, ProxyForURL will return an error
    	// when HTTPProxy applies, because a client could be
    	// setting HTTP_PROXY maliciously. See https://golang.org/s/cgihttpproxy.
    	CGI bool
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. src/net/http/cgi/host.go

    		port = matches[1]
    	}
    
    	env := []string{
    		"SERVER_SOFTWARE=go",
    		"SERVER_PROTOCOL=HTTP/1.1",
    		"HTTP_HOST=" + req.Host,
    		"GATEWAY_INTERFACE=CGI/1.1",
    		"REQUEST_METHOD=" + req.Method,
    		"QUERY_STRING=" + req.URL.RawQuery,
    		"REQUEST_URI=" + req.URL.RequestURI(),
    		"PATH_INFO=" + pathInfo,
    		"SCRIPT_NAME=" + root,
    		"SCRIPT_FILENAME=" + h.Path,
    		"SERVER_PORT=" + port,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    type proxyFromEnvTest struct {
    	req string // URL to fetch; blank means "http://example.com"
    
    	env      string // HTTP_PROXY
    	httpsenv string // HTTPS_PROXY
    	noenv    string // NO_PROXY
    	reqmeth  string // REQUEST_METHOD
    
    	want    string
    	wanterr error
    }
    
    func (t proxyFromEnvTest) String() string {
    	var buf strings.Builder
    	space := func() {
    		if buf.Len() > 0 {
    			buf.WriteByte(' ')
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top