in reply to Re: Re: Re: Avoiding race conditions
in thread Avoiding race conditions
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!
|
|---|