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


ru.cgi.perl

 
 - RU.CGI.PERL ------------------------------------------------------------------
 From : vad@tomsknet.ru                      2:5020/400     25 Mar 2001  10:42:36
 To : All
 Subject : Cookies & 204 No Content
 -------------------------------------------------------------------------------- 
 
 Hi, All!
 Подскажите, каким образом можно заставить
 клиента принять cookies, не уходя с текущего
 документа?
 Выдача скриптом заголовка типа
   $query->header(-status=>'204 No Content',
       -cookie=>$cookie);
 удовлетворяет IE, но Netscape cookie игнорирует - т.е.
 серверу не передает в последующих запросах.
 А IE5 - передает.
 
 Хотя RFC1945 говорит:
 204 No Content 
      The server has fulfilled the request but there is no new 
      information to send back. If the client is a user agent, it should not
      change its document view from that which caused the request to 
      be generated. This response is primarily intended to allow input for
      scripts or other actions to take place without causing a change
      to the user agent's active document view. The response
      may include new metainformation in the form of entity headers, which
    ^^^^^^^^^^^^^^^^^^^^^^-cookies под это не подходят?
      should apply to the document currently in the user agent's active view.
 
 Извиняюсь, если вопрос чайницкий, недавно занимаюсь. Hо тут уже приперло :(
 Буду признателен за любые соображения.
 
 -- 
 Best regards,
 Vadim Kozlov
 --- ifmail v.2.15dev5
  * Origin: Tomsktelecom - Digital Networks (2:5020/400)
 
 

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

 Тема:    Автор:    Дата:  
 Cookies & 204 No Content   vad@tomsknet.ru   25 Mar 2001 10:42:36 
 Moderatorial [*] (Re: Cookies & 204 No Content)   Comoderator of RU.CGI.PERL   26 Mar 2001 13:33:42 
Архивное /ru.cgi.perl/139098daa171f.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional