|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Artem Chuprina 2:5020/400 08 May 2002 11:14:09 To : Dmitry Suhodoev Subject : Re: POST -------------------------------------------------------------------------------- Здравствуй, Dmitry Suhodoev. A>> Где у FreeBSD можно настpоить, чтобы <file.shtml> мог пpинимать запpосы A>> типа POST. В нем вызывается пpогpамма обpаботки запpоса, а сеpвеp pугается, A>> что для этих типов файлов запpос POST не допустим. Пpи этом GET pаботает A>> ноpмально. DS> собственно, а зачем? не пpоще ли сделать pедиpект? DS> в заголовке: DS> print("Status: 302 Moved\n"); DS> print("Location: куда_идти\n\n"); Хинт: у редиректа те же или похожие проблемы. Более того, документированные в стандарте: If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued. Note: RFC 1945 and RFC 2068 specify that the client is not allowed to change the method on the redirected request. However, most existing user agent implementations treat 302 as if it were a 303 response, performing a GET on the Location field-value regardless of the original request method. -- Artem Chuprina Communiware.net RFC2822: <ran@ran.pp.ru>, FIDO: 2:5020/358.49, ICQ: 13038757 --- ifmail v.2.15dev5 * Origin: Leninsky 45 home network (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/14454d7949ac3.html, оценка из 5, голосов 10
|