I am writing a Java app that should download a Pdf form here: https://forms.business.gov.au/smartforms/servlet/SmartForm.pdf?formCode=RRDAA
I have tried various options, including:
- https://www.baeldung.com/java-download-file
- How to download and save a file from Internet using Java?
The problem is that the content that's being downloaded when I use those examples, is simply the content of the website that you see when you open the URL.
But I want to download the actual Pdf file, not that website.
Any help is appreciated.