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


ru.cgi.perl

 
 - RU.CGI.PERL ------------------------------------------------------------------
 From : VladimirI                            2:5020/400     12 Jan 2001  00:35:24
 To : Pavel V. Ammosov
 Subject : Re: cgi-header
 -------------------------------------------------------------------------------- 
 
 Thu Jan 11 2001 14:57, Pavel V. Ammosov wrote to All:
 
  PA> On Thu, 11 Jan 2001 01:33:09 +0300, VladimirI <vld@tensor.ru> wrote:
 
  >> Hi All, народ
  >> 
  >> есть трабл
  >> 1) есть скрипт 
  >> #123.pl
  >> print "content-type: application/octet-stream":
  >> print  `cat 1234567.zip`;
  >> 
  >> в результате запроса браузер пытается сохранить файл как 123.pl
  >> есть ли возможность ему сказать имя этого файла?
  >> доки по http перерыл ничего не нашел
  >> заранее тханкс
 
  PA> Content-Disposition: inline; filename=$filename
  PA> Говорят, правда, что msie3 и 5 этого не понимают.
 
  PA> -- 
  PA> Pavel Ammosov                                               O    \
  PA> apavel@aha.ru                                                 __  )
  PA> http://isabase.philol.msu.ru/~apavel/                             )
  PA> wget -O - isabase.philol.msu.ru/~apavel/key.asc|pgp -fka    O    /
 
 вот вытянул из майкрософта думаю некоторым будет это интересно 
 
 FIX: "Content-Disposition: Attachment" Fails for Known Content Types 
 
 -------------------------------------------------------------------------------
 -
 The information in this article applies to:
 
 Microsoft Internet Explorer (Programming) version 5.5
 
 -------------------------------------------------------------------------------
 -
 SYMPTOMS
 Despite the "Content-Disposition: attachment" HTTP response header, Internet
 Explorer does not prompt the user to save the file and instead automatically
 displays the file in the browser. 
 RESOLUTION
 To resolve this problem, obtain the latest service pack for Internet Explorer
 version 5.5. For additional information, please see the following article in
 the Microsoft Knowledge Base:
 Q276369 How to Obtain the Latest Internet Explorer 5.5 Service Pack 
 STATUS
 Microsoft has confirmed this to be a bug in the Microsoft products listed at
 the beginning of this article. This problem was first corrected in Internet
 Explorer version 5.5 Service Pack 1.
 MORE INFORMATION
 Not all content types are affected by this bug. Only default content types
 such as HTML and text files fail to show a File Download dialog box. 
 
 Steps to Reproduce Behavior
 The following Active Server Pages (ASP) page reproduces the problem: 
 <%@ Language=VBScript %>
 <% Response.AddHeader "Content-Disposition", "attachment" %>
 This text should not appear in the browser window automatically.
 Internet Explorer should prompt the user first with the option to save the
 file. 
 
 ну а вообще то это довольно неприятно
 
 спасибо всем кто ответил а то не знал даже где копать
 
 и встречный вопрос как получить инфу по всем доступным хэдерам хттпэшным с
 кратким описанием я знаю есть в рфс но ведь их до фига особенно когда не
 знаешь что искать....
 
 Regards vld; 18278237; http://www.uniyar.ac.ru/~vld; YarSU; CS Faculty
 
 --- ifmail v.2.15dev5
  * Origin: FidoNet Online - http://www.fido-online.com (2:5020/400)
 
 

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

 Тема:    Автор:    Дата:  
 Re: cgi-header   VladimirI   12 Jan 2001 00:35:24 
Архивное /ru.cgi.perl/1667980982af7.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional