Главная страница


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)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 POST   Andrey   02 May 2002 20:14:44 
 POST   Dmitry Suhodoev   07 May 2002 08:54:46 
 Re: POST   Artem Chuprina   08 May 2002 11:14:09 
 POST   Dmitry Suhodoev   08 May 2002 23:16:22 
 Re: POST   Artem Chuprina   13 May 2002 15:56:36 
Архивное /ru.cgi.perl/14454d7949ac3.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional