Subj : CGI questiuon To : Bob Swift From : Jasen Betts Date : Sat Dec 06 2003 11:08 pm Hi Bob. 27-Nov-03 21:10:53, Bob Swift wrote to Jasen Betts BS> On 26 Nov 2003 20:46:38, Jasen Betts wrote to All: JB>> Hi All. JB>> I want to serve a binary files to an HTTP client (like JB>> wget) from a CGI script, JB>> is that posssible? BS> Following is a script that I use from one of the web sites that I BS> maintain. It may be a bit of overkill for what you're after, but it BS> should give you an idea of how it's done. Essentially what you do is BS> redirect the browser to the file. In my case, I serve the files from BS> a different ftp server, but you could send them via http just as BS> easily looking at this again... it appears to use the "Location" in the response redirect the server to the file (rather than redirecting the broswer) or does location cause the server to send some sort of command to the HTTP client? BS> sub print_redirect { BS> print "Location: $_[0]\n\n"; BS> exit 0; BS> } that seems to do the trick thanks. -=> Bye <=- --- * Origin: Bushido does not mean what it sounds like. (3:640/1042) .