"Morse, Richard E" wrote: > > I'm not sure about it cutting off, but handling the naming issue of the download > is something that I've dealt with before -- basically, most browsers are going > to save the file by the name of the page they are getting it from. The trick is > to fool the browsers into believing that they are downloading something by the > name of the file you want. Happily, the HTTP specification includes the ability > to pass extra path info. It's been a while since I wrote the code to do this, > so I don't remember all of it, but basically, you want something that you call > like this: > > http://mysite.com/myscript.cgi/path/to/my/file?any=extra+cgi+params --------------------------^
When using PATH_INFO, you use / instead of ? to start the arg list: http://mysite.com/myscript.cgi/relativepathtomy/script/any=extra+cgi+params > Then myscript.cgi looks at an environment variable (whose exact name I can't > remember off the top of my head, but is something like $ENV{'PATH_INFO'}) to > determine which file to send back. -- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/ _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users