#define ENV_HOST "HOST" /* Remote Host */
#define ENV_HTTP_HOST "HTTP_HOST" /* Local Host */
#define ENV_CONTEXT "CONTEXT" /* Arbitrary Data from Config */
+#define ENV_METHOD "METHOD" /* Request method (eg. GET, HEAD, POST, OPTIONS, etc.) */
/* Undefine this if you do not want cookies passed to the script */
#define ENV_COOKIE "COOKIE"
if (r->uri)
child_env[i++]= apr_pstrcat(p, ENV_URI"=", r->uri, NULL);
+ if (r->method)
+ child_env[i++] = apr_pstrcat(p, ENV_METHOD"=", r->method, NULL);
+
if ((host= apr_table_get(r->headers_in, "Host")) != NULL)
child_env[i++]= apr_pstrcat(p, ENV_HTTP_HOST"=", host, NULL);