Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53724

Re: How to exit a cgi file after a download

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeeder.ewetel.de!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <SRS0=Acv66S=SR=inqvista.com=inq1ltd@eigbox.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'pop': 0.05; 'subject:file': 0.07; "client's": 0.09; 'identifier': 0.09; 'invalidate': 0.09; 'window.': 0.09; 'runs': 0.10; 'subject:How': 0.10; 'python': 0.11; '&gt;&gt;': 0.16; 'form"': 0.16; 'identifiers': 0.16; 'link,': 0.16; 'subject:after': 0.16; 'subject:download': 0.16; 'valid.': 0.16; 'trying': 0.19; 'file,': 0.19; 'print': 0.22; 'load': 0.23; 'header:User-Agent:1': 0.23; 'script.': 0.24; 'file.': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'asked': 0.31; 'code': 0.31; 'requests': 0.31; 'cgi': 0.31; 'received:10.20.15': 0.31; 'received:10.20.18': 0.31; 'received:10.20.55': 0.31; 'received:eigbox.net': 0.31; 'allows': 0.31; 'file': 0.32; 'figure': 0.32; 'another': 0.32; 'open': 0.33; 'received:10.20': 0.33; 'problem': 0.35; 'received:66': 0.35; 'problem.': 0.35; 'but': 0.35; 'add': 0.35; 'there': 0.35; 'url :rec-html40': 0.35; 'html,': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:10': 0.37; 'button': 0.38; 'skip:& 10': 0.38; 'form,': 0.38; 'stopped': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'track': 0.38; 'skip:& 20': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'browser': 0.61; "you'll": 0.62; 'such': 0.63; 'choose': 0.64; 'close': 0.67; 'limit': 0.70; 'click': 0.77; 'url:dtd': 0.80; 'technically': 0.84; 'written;': 0.84; 'download.': 0.91; 'lazy': 0.91; 'opens': 0.91; 'response,': 0.91; 'url:strict': 0.95
X-Authority-Analysis v=2.0 cv=bNyU0YCZ c=1 sm=1 a=DnT4q6txS1FsGmPIc9vpgw==:17 a=spKFjZujUncA:10 a=sKeuco9On0AA:10 a=VXAcWxSJ1N0A:10 a=OmMKortqy18A:10 a=tTExfe6FAAAA:8 a=nGmIwqm_SWQA:10 a=8ONGxiEqAAAA:8 a=JiSQs7JhLChbY06vomUA:9 a=wPNLvfGTeEIA:10 a=P3uMDV8RXKwA:10 a=SSmOFEACAAAA:8 a=_bJE3uRDzIdiqyuCficA:9 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 a=qMDZ_Ezp4_0A:10 a=ftp24bQzDKk6bCFB:21 a=9MP9vxlQrmnoeofDS6o88g==:117
X-EN-OrigOutIP 10.20.18.2
X-EN-IMPSID MULt1m00802gpmq01ULtRA
From inq1ltd <inq1ltd@inqvista.com>
To python-list@python.org
Subject Re: How to exit a cgi file after a download
Date Thu, 05 Sep 2013 12:33:42 -0400
User-Agent KMail/4.10.5 (Linux/3.7.10-1.16-desktop; KDE/4.10.5; i686; ; )
In-Reply-To <CAMuTYXj-Sm-_uceE=oQVrwSzUDscj1xVSRje3+D8vXMkFU+e4w@mail.gmail.com>
References <l0447t$t8a$4@dont-email.me> <4159689.hlvflXlB94@mach-123> <CAMuTYXj-Sm-_uceE=oQVrwSzUDscj1xVSRje3+D8vXMkFU+e4w@mail.gmail.com>
MIME-Version 1.0
Content-Type multipart/alternative; boundary="nextPart1495749.U0zniss5gD"
Content-Transfer-Encoding 7Bit
X-EN-UserInfo ea107384e720a598200e9790e8ca8002:9d89a6cbd5a73a41b134431a25286195
X-EN-AuthUser inq1ltd@inqvista.com
Sender inq1ltd <inq1ltd@inqvista.com>
X-EN-OrigIP 71.127.135.75
X-EN-OrigHost pool-71-127-135-75.rcmdva.east.verizon.net
Cc Benjamin Kaplan <benjamin.kaplan@case.edu>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.100.1378400867.5461.python-list@python.org> (permalink)
Lines 185
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378400867 news.xs4all.nl 15967 [2001:888:2000:d::a6]:34139
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53724

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

There is no such thing as a "cgi form" or "cgi window". Your cgi script runs 
when the user requests a Web page, generates a page, and then ends. At that 
point, python has stopped running. If your want the client's browser window to 
close, that's not a python problem. If you want to invalidate the download link 
after one successful download, you'll have to add a unique identifier to the 
url and keep track of which identifiers are still valid.




Thanks for responding,

Technically cgi is a script.  But a form is what a cgi script file can create.

The form I asked about is html, it was generated by a cgi script file. So I 
should have written; a cgi script file generated html form, or a cgi script 
file generated html window. Lazy writing.
My mistake.

However I asked a question which now is mute. Once the user downloads the data 
the user can copy it, so why limit the download?.  

I appreciate the response,

jd
inqvista.com






 








Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-03 10:48 +0300
  Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-03 02:33 -0700
    Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-03 13:44 +0300
  Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-03 22:14 -0400
    Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-04 02:31 -0700
      Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 12:16 -0400
        Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 17:38 -0400
        Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 09:31 +0300
          Re: Cannot form correctly the FORM part of the header when sending mail Steven D'Aprano <steve@pearwood.info> - 2013-09-05 08:58 +0000
            Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 12:34 +0300
              Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 12:36 +0300
                Re: Cannot form correctly the FORM part of the header when sending mail Dave Angel <davea@davea.name> - 2013-09-05 10:33 +0000
                Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 13:48 +0300
                Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 04:02 -0700
                Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 14:20 +0300
                Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 05:18 -0700
                Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 15:36 +0300
                Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 06:29 -0700
                Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 16:38 +0300
                Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 17:01 +0300
                Re: Cannot form correctly the FORM part of the header when sending mail alex23 <wuwei23@gmail.com> - 2013-09-06 13:38 +1000
                Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 08:00 -0700
                Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 18:59 +0300
                Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 09:50 -0700
                Re: Cannot form correctly the FORM part of the header when sending mail Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-05 17:50 +0000
                Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-06 00:48 -0400
                Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-06 09:44 +0300
                Re: Cannot form correctly the FORM part of the header when sending mail Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-05 17:28 +0000
              Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-05 11:19 -0400
    Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-04 02:57 -0700
      Re: Cannot form correctly the FORM part of the header when sending mail Dave Angel <davea@davea.name> - 2013-09-04 11:15 +0000
        Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-04 14:29 +0300
          Re: Cannot form correctly the FORM part of the header when sending mail Dave Angel <davea@davea.name> - 2013-09-04 12:21 +0000
      Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 12:22 -0400
  Re: Cannot form correctly the FORM part of the header when sending mail Heiko Wundram <modelnine@modelnine.org> - 2013-09-04 14:18 +0200
    Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-04 17:29 +0300
      Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 13:33 -0400
    Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 12:06 -0400
    How to exit a cgi file after a download Ferrous Cranus <nikos@superhost.gr> - 2013-09-04 12:49 -0400
    How to exit a cgi file after a download. inq1ltd <inq1ltd@inqvista.com> - 2013-09-04 14:44 -0400
    Re: How to exit a cgi file after a download. Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-04 15:42 -0400
      Re: How to exit a cgi file after a download. alex23 <wuwei23@gmail.com> - 2013-09-05 09:56 +1000
    Re: How to exit a cgi file after a download random832@fastmail.us - 2013-09-04 16:23 -0400
    Re: How to exit a cgi file after a download Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-09-04 13:51 -0700
  Re: How to exit a cgi file after a download inq1ltd <inq1ltd@inqvista.com> - 2013-09-05 12:33 -0400

csiph-web