----- Original Message -----
From: "Martynoff, Nikolay" <mna@xxxxxxxx>
> Привет Ал!
> Сабж абсолютно невозможен?
> Error 405, Not Allowed :(
>
Я вот в очередной раз надругался над mod_include. После этого заработало.
===mod include.c ====
/* находим этот фрагмент (функция send_parsed_file)*/
/* r->allowed |= (1 << M_GET);
if (r->method_number != M_GET) {
return DECLINED;
}
*/
/* и заменяем его на вот это*/
//////////////////////////////
r->allowed |= (1 << M_GET);
r->allowed |= (1 << M_POST);
if (r->method_number == M_GET) {
/*do nothing*/
}
else if (r->method_number == M_POST) {
char argsbuffer[HUGE_STRING_LEN];
int retval;
/* Transfer any put/post args, CERN style...*/
if ((retval = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR)))
return retval;
if (ap_should_client_block(r)) {
int len_read;
ap_hard_timeout("copy script args", r);
/*init ""*/
r->args = "";
while ((len_read =
ap_get_client_block(r, argsbuffer, HUGE_STRING_LEN)) > 0) {
if (len_read < HUGE_STRING_LEN)
argsbuffer[len_read] = (char) 0;
r->args =
ap_psprintf(r->pool,
"%s%s",r->args,argsbuffer) ;
ap_reset_timeout(r);
}
/* for subrequest - let they mean, that is not POST but GET*/
r->method_number = M_GET;
/* ap_kill_timeout(r);*/
}
}
else return DECLINED;
///////////////////////////////
=============================================================================
= Apache-Talk@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.