Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'problem?': 0.07; 'subject:file': 0.07; 'received:internal': 0.09; 'window.': 0.09; 'subject:How': 0.10; 'canceled': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:compute4.internal': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subject:after': 0.16; 'subject:download': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'example': 0.22; '(or': 0.24; '(for': 0.26; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'usually': 0.31; 'accidentally': 0.31; 'cgi': 0.31; 'sep': 0.31; 'open': 0.33; 'period': 0.33; 'received:66': 0.35; 'should': 0.36; 'received:10': 0.37; 'window': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'choose': 0.64; 'close': 0.67; 'to,': 0.72; '2013,': 0.91 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:subject:date:in-reply-to:references; s=mesmtp; bh= d6YEXOhJgCAMRD8LbCHvomYDPKg=; b=mztJnBc+SM7AICGi6/o/4iYugP/Q7Lma cbQXaX/7b0R8lBYREXqeFTLdj41xt3eR/0/v1l19IVOg/IaCUflM4MFMU7c3EbTO Syh48sgH0N7++4o723HSMxG41QxIWKc+q+GmLgFEKdWgbFxNzv21ofsNPqxyysvF Ld97qxJ+r9s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=d6YEXOhJgCAMRD8LbCHvomYDPKg=; b=BcDIO r9GOhSaytduJGhIQu56rx7Sd7V6hLNpbWiCfze/u9ZutWfNtEj+dhoJSaZriO1wH 6uAiTN0ZjlB908K9fy15/3QbCTcU0f7cP0Vjz253Y4dMoMSagAO2yLDnvHAAaz1p cEZEYj6xJkV6LNAxK3h5PONJBMLeSVwX+low9A= X-Sasl-Enc: TYEro/76gh7O+mPXItsUFP6NxNTd6ZvGLNzSvXZ01Ayn 1378326213 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-ed2f0e98 Subject: Re: How to exit a cgi file after a download Date: Wed, 04 Sep 2013 16:23:33 -0400 In-Reply-To: <4159689.hlvflXlB94@mach-123> References: <4159689.hlvflXlB94@mach-123> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378326215 news.xs4all.nl 15964 [2001:888:2000:d::a6]:58663 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53650 On Wed, Sep 4, 2013, at 12:49, Ferrous Cranus wrote: > 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. Why is this a problem? They usually won't want to, and if they do want to (for example if they accidentally canceled the download) I don't see why not to let them. The solution should be to give them a unique download link that will only work once (or only for a certain period of time), not to close the window.