title: HtmlUnit download attachments
body: <p>I need to save files from websites Using <code>HtmlUnit</code>. I am currently navigating to pages that have several anchors that use javascript <code>onClick()="DownloadAttachment('attachmentId')"</code> to get the files. The files can be of pretty much any type ( xls, doc, txt, pdf, jpg, etc). So far though I've been unable to find resources or examples that show how to save files using <code>htmlUnit</code>. I've been trying mainly to get <code>AttachmentHandler</code> to work for this as it seems the most likely to work, but have been unsuccessful. I was wondering if anyone else has managed to download files using <code>HtmlUnit</code> and could assist?</p>