lighttpd 1.4.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
763 B

* http_cgi - Common Gateway Interface (CGI) interfaces (RFC 3875)
* Copyright(c) 2016-2017 Glenn Strauss gstrauss() All rights reserved
* License: BSD 3-clause (same as lighttpd)
#include "first.h"
#include "base_decls.h"
#include "buffer.h"
typedef struct http_cgi_opts_t {
int authorizer;
int break_scriptfilename_for_php;
const buffer *docroot;
const buffer *strip_request_uri;
} http_cgi_opts;
typedef int (*http_cgi_header_append_cb)(void *vdata, const char *k, size_t klen, const char *v, size_t vlen);
int http_cgi_headers (request_st *r, http_cgi_opts *opts, http_cgi_header_append_cb cb, void *vdata);
handler_t http_cgi_local_redir (request_st *r);