How to exit a cgi file after a download.

Joel Goldstick joel.goldstick at gmail.com
Wed Sep 4 15:42:33 EDT 2013


This same message comes up under one of Niko's many aliases.  Is this
another?  Why post twice?

On Wed, Sep 4, 2013 at 2:44 PM, inq1ltd <inq1ltd at inqvista.com> wrote:
> Python help.
>
> I use the following code in a cgi file
> to give the client a download link to
> download a file.
>
> ---
>
> print "%s" % ('<a href = "Setup.zip"> Down
> Load </a>')
>
> ----
>
> A click on "Down Load" opens a pop up browser
> window which allows the user to choose where
> to download the "Setup.zip" file, then after
> the download, the pop up window closes.
>
> My problem is that I want the cgi form, which
> contains the link, to also close after the
> download.  The only way I can figure out to
> close the cgi window is to give the user a
> button to close it.
>
> Without closing it, the client can download
> again and forever if they choose to because
> the cgi window is open and the link is still
> active.
>
> I am trying to find a way to close the cgi
> file or call another file after the download
> without adding a close button and asking the
> client to close the window.
>
> jd
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com



More information about the Python-list mailing list