filmo has asked for the wisdom of the Perl Monks concerning the following question:
Which of course links to the correct file and pulls up the correct directory information from the database. perl.cgi then creates a URL string like this<a href="perl.cgi?random_id=23ljasdf09">
Where the 'final.doc' is the document refreneced by the 'random_id' in the original HREF link. (There are other checks in place, not shown here.)$URL = "/base_directory/client/job/final.doc";
Next, I want to 'push' that document to the user and have tried variations of:
And I end up with various results depending on the browsers. (some, on Windoz either open the file in Word or save it to disk; on Mac, it saves the file under the name "perl.cgi" instead of "final.doc" ??) What I'd really like is for the client to be able to click on the link and have the finished MS Word document saved to their disk (assuming they consent.) What's the best approach to this. I'm sure I must be doing something rather simple wrong. Thanks.print "Location: www.mysite.com/$URL";
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pushing requested file
by gav^ (Curate) on Feb 08, 2002 at 14:48 UTC | |
|
Re: pushing requested file
by abaxaba (Hermit) on Feb 16, 2002 at 20:45 UTC | |
|
Re: pushing requested file
by silent11 (Vicar) on Feb 08, 2002 at 14:01 UTC | |
|
Re: pushing requested file
by Anonymous Monk on Aug 28, 2002 at 18:02 UTC |