Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'pop': 0.05; 'subject:file': 0.07; 'window.': 0.09; 'subject:How': 0.10; 'python': 0.11; '"%s"': 0.16; 'link,': 0.16; 'subject:after': 0.16; 'trying': 0.19; 'file,': 0.19; 'help.': 0.21; 'print': 0.22; 'load': 0.23; 'header:User-Agent:1': 0.23; 'file.': 0.24; '---': 0.24; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; '----': 0.29; 'code': 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; 'charset:us-ascii': 0.36; 'received:10': 0.37; 'button': 0.38; 'form,': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'browser': 0.61; 'choose': 0.64; 'close': 0.67; 'click': 0.77; 'download.': 0.91; 'opens': 0.91 X-Authority-Analysis: v=2.0 cv=dt1Z+ic4 c=1 sm=1 a=LOZk4I9Qb8+4tCCqR5aAJQ==:17 a=spKFjZujUncA:10 a=sKeuco9On0AA:10 a=BznSdP6NXRAA:10 a=OmMKortqy18A:10 a=kj9zAlcOel0A:10 a=tTExfe6FAAAA:8 a=vEss0b9TrvMA:10 a=66OhhbKY_Dar8qBIA1UA:9 a=CjuIK1q_8ugA:10 a=W1gg3Cd1Su4A:10 a=UH8/iCWBfdUmbm4Ft4Vi3Q==:117 X-EN-OrigOutIP: 10.20.18.13 X-EN-IMPSID: M6o51m0040GvDVm016o5iL From: inq1ltd To: python-list@python.org Subject: How to exit a cgi file after a download. Date: Wed, 04 Sep 2013 14:44:23 -0400 User-Agent: KMail/4.10.5 (Linux/3.7.10-1.16-desktop; KDE/4.10.5; i686; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-EN-UserInfo: ea107384e720a598200e9790e8ca8002:9d89a6cbd5a73a41b134431a25286195 X-EN-AuthUser: inq1ltd@inqvista.com Sender: inq1ltd X-EN-OrigIP: 71.246.151.106 X-EN-OrigHost: pool-71-246-151-106.rich.east.verizon.net 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: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378322379 news.xs4all.nl 15934 [2001:888:2000:d::a6]:39129 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53645 Python help. I use the following code in a cgi file to give the client a download link to download a file. --- print "%s" % (' Down Load ') ---- 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