05-13-2011 11:55 AM
Working with Web/HTTP. I would like to record the download of a couple linked PDFs on the pages.
I have been trying to record this, but I keep getting empty blocks similar to this:
I have been digging through the forums and found this thread:
I've tried recording in several modes (including Web/URL) but can't seem to lick the problem.
From a user perspective, I don't think I care if the client opens the PDF in the Acrobat IE browser plug-in, or just saves the file. I think the part I care about is that the script forces the server to send me the entire PDF.
Any ideas? I'm kind of frustrated as I thought I had done this successfully once before.
Thanks in advance,
05-14-2011 05:31 AM
Define the pdf content-type (it must be application/pdf) as non-resource (Recording Options / HTTP Properties / Advanced / button "Non Resources..."/ use button "+" to add the content-type).
It can also be done using "Tools/Regenerate Script".
After that, you can use "%EOF%", as text to be found, in a web_reg_find function inserted just before the step which downloads the pdf file.