CGI script to count downloads

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Apr 5 21:19:18 EDT 2001


Walter Hofmann wrote:
> 
> Use the following commands to redirect the browser to the "real" URL
> where the file is located:
> 
> print "Location: http://server/real/url.tar.gz"
> print "Status: 302 Found"
> print

That's the solution I finally adopted. Thanks to
all who replied.

By the way, it seems to work with just the
"Location:" line. What does the "Status:"
line do? Will anything bad happen if I
leave it out?

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list