print "Content-Type: application/pdf\n"; print "Content-Disposition: attachment; filename=$username.tasks.pdf\n\n";I didn't know about that "Content-Disposition" header. That fixes the unlinking problem.
pause to test
Neat! This actually solves the entire temporary filename aspect, since I now no longer need a file! ( I can just deliver the content directly). The previous problem was convincing the browser to not try to save pdfprogram.cgi?PARAMETERS=BLAH as the filename.
Thanks a ton!
In reply to Re: (4) Avoiding race conditions
by swiftone
in thread Avoiding race conditions
by swiftone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |