Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SCRIPT_NAME (0.21 sec)

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

    		"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",
    		"env-SERVER_PORT":       "80",
    		"env-SERVER_SOFTWARE":   "go",
    	}
    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/child.go

    			r.Header.Add(strings.ReplaceAll(after, "_", "-"), v)
    		}
    	}
    
    	uriStr := params["REQUEST_URI"]
    	if uriStr == "" {
    		// Fallback to SCRIPT_NAME, PATH_INFO and QUERY_STRING.
    		uriStr = params["SCRIPT_NAME"] + params["PATH_INFO"]
    		s := params["QUERY_STRING"]
    		if s != "" {
    			uriStr += "?" + s
    		}
    	}
    
    	// There's apparently a de-facto standard for this.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. test-site/activator

    loadConfigFile() {
      cat "$1" | sed '/^\#/d'
    }
    
    ###  ------------------------------- ###
    ###  Start of customized settings    ###
    ###  ------------------------------- ###
    usage() {
     cat <<EOM
    Usage: $script_name <command> [options]
    
      Command:
      ui                 Start the Activator UI
      new [name] [template-id]  Create a new project with [name] using template [template-id]
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 9.3K bytes
    - Viewed (0)
  4. src/net/http/cgi/cgi_main.go

    package cgi
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"os"
    	"path"
    	"slices"
    	"strings"
    	"time"
    )
    
    func cgiMain() {
    	switch path.Join(os.Getenv("SCRIPT_NAME"), os.Getenv("PATH_INFO")) {
    	case "/bar", "/test.cgi", "/myscript/bar", "/test.cgi/extrapath":
    		testCGI()
    		return
    	}
    	childCGIProcess()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/net/http/cgi/child_test.go

    	}
    }
    
    func TestRequestWithoutRequestURI(t *testing.T) {
    	env := map[string]string{
    		"SERVER_PROTOCOL": "HTTP/1.1",
    		"HTTP_HOST":       "example.com",
    		"REQUEST_METHOD":  "GET",
    		"SCRIPT_NAME":     "/dir/scriptname",
    		"PATH_INFO":       "/p1/p2",
    		"QUERY_STRING":    "a=1&b=2",
    		"CONTENT_LENGTH":  "123",
    	}
    	req, err := RequestFromMap(env)
    	if err != nil {
    		t.Fatalf("RequestFromMap: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 14 15:42:03 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  6. src/net/http/cgi/integration_test.go

    		"env-REMOTE_HOST":       "1.2.3.4",
    		"env-REMOTE_PORT":       "1234",
    		"env-REQUEST_METHOD":    "GET",
    		"env-REQUEST_URI":       "/test.go?foo=bar&a=b",
    		"env-SCRIPT_FILENAME":   os.Args[0],
    		"env-SCRIPT_NAME":       "/test.go",
    		"env-SERVER_NAME":       "example.com",
    		"env-SERVER_PORT":       "80",
    		"env-SERVER_SOFTWARE":   "go",
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 18:42:44 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. src/net/http/cgi/host.go

    		"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,
    	}
    
    	if remoteIP, remotePort, err := net.SplitHostPort(req.RemoteAddr); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. src/net/http/fcgi/child.go

    	switch s {
    	case "CONTENT_LENGTH", "CONTENT_TYPE", "HTTPS",
    		"PATH_INFO", "QUERY_STRING", "REMOTE_ADDR",
    		"REMOTE_HOST", "REMOTE_PORT", "REQUEST_METHOD",
    		"REQUEST_URI", "SCRIPT_NAME", "SERVER_PROTOCOL":
    		return false
    	}
    	if strings.HasPrefix(s, "HTTP_") {
    		return false
    	}
    	// Explicitly include FastCGI-specific things.
    	// This list is redundant with the default "return true" below.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top