Lines Matching refs:request

246 		fcgi_request *request = (fcgi_request*) SG(server_context);  in sapi_cgibin_single_write()  local
247 ret = fcgi_write(request, FCGI_STDOUT, str, str_length); in sapi_cgibin_single_write()
291 fcgi_request *request = (fcgi_request*) server_context; in sapi_cgibin_flush() local
292 if (!parent && request && !fcgi_flush(request, 0)) { in sapi_cgibin_flush()
438 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_read_post() local
440 char *request_body_filename = FCGI_GETENV(request, "REQUEST_BODY_FILE"); in sapi_cgi_read_post()
455 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
472 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgibin_getenv() local
473 return fcgi_getenv(request, name, name_len); in sapi_cgibin_getenv()
491 fcgi_request *request = (fcgi_request*) SG(server_context);
492 return fcgi_putenv(request, name, name_len, value);
499 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_read_cookies() local
501 return FCGI_GETENV(request, "HTTP_COOKIE"); in sapi_cgi_read_cookies()
519 fcgi_request *request = NULL; in cgi_php_import_environment_variables() local
540 request = (fcgi_request*) SG(server_context); in cgi_php_import_environment_variables()
541 fcgi_loadenv(request, cgi_php_load_env_var, array_ptr); in cgi_php_import_environment_variables()
594 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_log_fastcgi() local
602 if (CGIG(fcgi_logging) && request && message && len > 0 in sapi_cgi_log_fastcgi()
603 && fcgi_write(request, FCGI_STDERR, message, len) < 0) { in sapi_cgi_log_fastcgi()
688 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_activate() local
699 server_name = FCGI_GETENV(request, "SERVER_NAME"); in sapi_cgi_activate()
733 doc_root = FCGI_GETENV(request, "DOCUMENT_ROOT"); in sapi_cgi_activate()
952 fcgi_request *request = (fcgi_request*) SG(server_context); in init_request_info() local
953 char *env_script_filename = FCGI_GETENV(request, "SCRIPT_FILENAME"); in init_request_info()
954 char *env_path_translated = FCGI_GETENV(request, "PATH_TRANSLATED"); in init_request_info()
968 SG(request_info).request_method = FCGI_GETENV(request, "REQUEST_METHOD"); in init_request_info()
980 char *content_length = FCGI_GETENV(request, "CONTENT_LENGTH"); in init_request_info()
981 char *content_type = FCGI_GETENV(request, "CONTENT_TYPE"); in init_request_info()
982 char *env_path_info = FCGI_GETENV(request, "PATH_INFO"); in init_request_info()
983 char *env_script_name = FCGI_GETENV(request, "SCRIPT_NAME"); in init_request_info()
986 char *env_server_software = FCGI_GETENV(request, "SERVER_SOFTWARE"); in init_request_info()
993 env_path_info = FCGI_PUTENV(request, "ORIG_PATH_INFO", env_path_info); in init_request_info()
998 env_path_info = FCGI_PUTENV(request, "PATH_INFO", env_path_info); in init_request_info()
1057 char *env_redirect_url = FCGI_GETENV(request, "REDIRECT_URL"); in init_request_info()
1058 char *env_document_root = FCGI_GETENV(request, "DOCUMENT_ROOT"); in init_request_info()
1066 env_document_root = FCGI_PUTENV(request, "DOCUMENT_ROOT", PG(doc_root)); in init_request_info()
1142 FCGI_PUTENV(request, "ORIG_PATH_INFO", orig_path_info); in init_request_info()
1148 FCGI_PUTENV(request, "ORIG_SCRIPT_NAME", orig_script_name); in init_request_info()
1150 SG(request_info).request_uri = FCGI_PUTENV(request, "SCRIPT_NAME", env_path_info); in init_request_info()
1162 FCGI_PUTENV(request, "ORIG_SCRIPT_NAME", orig_script_name); in init_request_info()
1164 SG(request_info).request_uri = FCGI_PUTENV(request, "SCRIPT_NAME", env_script_name); in init_request_info()
1167 env_path_info = FCGI_PUTENV(request, "PATH_INFO", path_info); in init_request_info()
1172 FCGI_PUTENV(request, "ORIG_SCRIPT_FILENAME", orig_script_filename); in init_request_info()
1174 script_path_translated = FCGI_PUTENV(request, "SCRIPT_FILENAME", pt); in init_request_info()
1203 FCGI_PUTENV(request, "ORIG_PATH_TRANSLATED", orig_path_translated); in init_request_info()
1205 env_path_translated = FCGI_PUTENV(request, "PATH_TRANSLATED", path_translated); in init_request_info()
1222 FCGI_PUTENV(request, "ORIG_PATH_TRANSLATED", orig_path_translated); in init_request_info()
1224 env_path_translated = FCGI_PUTENV(request, "PATH_TRANSLATED", path_translated); in init_request_info()
1240 FCGI_PUTENV(request, "ORIG_SCRIPT_FILENAME", orig_script_filename); in init_request_info()
1242 script_path_translated = FCGI_PUTENV(request, "SCRIPT_FILENAME", NULL); in init_request_info()
1249 FCGI_PUTENV(request, "ORIG_SCRIPT_NAME", orig_script_name); in init_request_info()
1251 SG(request_info).request_uri = FCGI_PUTENV(request, "SCRIPT_NAME", env_script_name); in init_request_info()
1265 FCGI_PUTENV(request, "ORIG_SCRIPT_FILENAME", orig_script_filename); in init_request_info()
1267 script_path_translated = FCGI_PUTENV(request, "SCRIPT_FILENAME", script_path_translated); in init_request_info()
1273 FCGI_PUTENV(request, "ORIG_PATH_INFO", orig_path_info); in init_request_info()
1274 FCGI_PUTENV(request, "PATH_INFO", NULL); in init_request_info()
1277 FCGI_PUTENV(request, "ORIG_PATH_TRANSLATED", orig_path_translated); in init_request_info()
1278 FCGI_PUTENV(request, "PATH_TRANSLATED", NULL); in init_request_info()
1283 FCGI_PUTENV(request, "ORIG_SCRIPT_NAME", orig_script_name); in init_request_info()
1285 SG(request_info).request_uri = FCGI_PUTENV(request, "SCRIPT_NAME", env_script_name); in init_request_info()
1308 SG(request_info).query_string = FCGI_GETENV(request, "QUERY_STRING"); in init_request_info()
1313 auth = FCGI_GETENV(request, "HTTP_AUTHORIZATION"); in init_request_info()
1318 ini = FCGI_GETENV(request, "PHP_VALUE"); in init_request_info()
1327 ini = FCGI_GETENV(request, "PHP_ADMIN_VALUE"); in init_request_info()
1450 fcgi_request *request = (fcgi_request*) SG(server_context); in PHP_FUNCTION() local
1456 if (!fcgi_is_closed(request)) { in PHP_FUNCTION()
1460 fcgi_end(request); in PHP_FUNCTION()
1461 fcgi_close(request, 0, 0); in PHP_FUNCTION()
1472 fcgi_request *request; in PHP_FUNCTION() local
1479 if ((request = (fcgi_request*) SG(server_context))) { in PHP_FUNCTION()
1480 fcgi_loadenv(request, sapi_add_request_header, return_value); in PHP_FUNCTION()
1526 fcgi_request *request; in main() local
1839 request = fpm_init_request(fcgi_fd); in main()
1842 while (EXPECTED(fcgi_accept_request(request) >= 0)) { in main()
1845 SG(server_context) = (void *) request; in main()
1853 fcgi_finish_request(request, 1); in main()
1948 fcgi_request_set_keep(request, 0); in main()
1949 fcgi_finish_request(request, 0); in main()
1954 fcgi_destroy_request(request); in main()