How to specify User Agent and Referer in FileUtils.copyURLToFile(URL, File) method?
I’m using FileUtils.copyURLToFile(URL, File), an Apache Commons IO 2.4 part, to download and save the file on my computer. The problem is that some sites refuse connection without referrer and user …