I am working on a project that intends to download documents for which a link is provided in email.
I have parsed the email and triggered the subject link. I have also successfully downloaded a document via a static link. But I can't figure out the redirect.
The website gives me a link at which I can access a document ONE TIME ONLY. (This makes testing quite difficult). If I code to display a clickable url of the target document, I get a clickable link, which I can then click and download the document.
However, I can't seem to come up with code that will automate the process.
Instead, my code contacts the link, which then resets on the assumption I have had my "1 free look". But, I did not actually see or download the document. How do I get php to follow the link and download the document. [This has to do with court notices and commercial packages that will do this include "I Got Notices" and "Notice Me." It's very tedious to download all these documents by hand. Any one experienced with attempting to download the target of a URL?]
Thx.