A web site presents an xhtml page with a Download clickable button. When clicked from the web page I get the .zip file. Instead of Browser - I'm try to automate the download using wget --referrer. For wget I need to the Download link. I have used Live HTTP Headers to capture the RR traffic - looks to me the server is throwing a JSF/PrimeFace page with Input as Hidden and does provide the link or path to the file. Here is what got from the capture:

</div><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-3398716848402376611:2833976163771474925" autocomplete="off" />

I readup on a similar issue responses - in particular from user "hhaamu" - where he did not elaborate how he detected the hidden download link.

closed as unclear what you're asking by Bratchley, Anthon, Archemar, Eric Renouf, sam Dec 29 '16 at 16:07

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


Open the Network tab using the Developer Tools in Firefox. The Network tab shows resources that Firefox requests. If you click the button that initiates the download, you should see the file resource appear in the Network tab. From there you can grab the URL of the file resource by right-clicking it and then you can feed that URL to wget.


Download it manually, then go to Downloads in your browser (ex. Show All Downloads in Firefox). Then you should be able to copy the resource link in the right-click pop-up menu.

Not the answer you're looking for? Browse other questions tagged or ask your own question.