Raising Download Dialog

From: Frank Lorenz (f.lo_at_gmx.de)
Date: 10/11/03


Date: Sat, 11 Oct 2003 12:33:50 +0200

Hi

A servlet generated response is treaten differently each time. One time the
webbrowser raises correctly a download dialog, wich enables the user to save
a file. This happens when the data to download is small. The other time,
instead to show a download dialog, the webbrowser shows the data directly as
a new page. This happens with larger downloaddata.

Therefore i suppose it depends on wrong caching adjustments i've made in the
responseheader. But i'm not really shure about it. The header is configured
in a way, that the response is declarated as extreme volatile, so that the
caching mechanism actually will not grip.

The header looks like:
header("Content-disposition: attachment; filename=file.csv");
header("Content-type: application/octet-stream");
header("Pragma: no-cache");
header("Expires: -1");

The problem occurs with any webbrowser (doesn't matter if ie, ns,
mozilla...). Tomcat 4.0.x is used.

Regards
the clueless Frank



Relevant Pages

  • Trigger Downloaddialog
    ... A servlet generated response is treaten differently each time. ... webbrowser raises correctly a download dialog, wich enables the user to save ... This happens when the data to download is small. ...
    (comp.lang.java.programmer)
  • Re: [XPN] weird anomaly
    ... >>> Then you saw my response? ... I tried to download just one header in the ... >> I even tried to download 0 headers and got an error message.... ... if you don?t like your job you don?t strike. ...
    (news.software.readers)
  • Re: Trigger Downloaddialog
    ... > A servlet generated response is treaten differently each time. ... > webbrowser raises correctly a download dialog, wich enables the user to save ... This happens when the data to download is small. ...
    (comp.lang.java.programmer)
  • Re: Office 2003 SP2
    ... > explicitly inquired about someone else downloading the patch for you, ... My response to you indicated that this would not be legal. ... > converation about whether it is legal or not to ask someone else to download ... install the update onto my PC from that CD? ...
    (microsoft.public.officeupdate)
  • Re: [unix, console] : something like wget but with forms + authentification
    ... >> download the response after submitting your name and password, ... > tools, like lynx, links, elinks, wget, don't seem to access to this ... I used wget to download the pages you linked to, ... html expert, but perhaps I have been exposed to a little more ...
    (comp.unix.shell)