Menu

File Download Response

Anonymous
2003-08-04
2003-10-02
  • Anonymous

    Anonymous - 2003-08-04

    Hello,

    I am using HttpUnit to write an offline browser to backup my web site. However, I don't know how HttpUnit handle non-html responses (e.g. response containing binary data of a file).

    I have tried to write the InputStream (came from WebResponse.getInputStream) to FileOutputStream. But the saved file seems bigger and cannot be opened.

    Can anybody help?

    Joyce

     
    • John Lonergan

      John Lonergan - 2003-10-02

      Why not use wget or the like - it would seem much simpler than using httpunit - or are there parts of you site only accessible using javascript.

       

Log in to post a comment.

Auth0 Logo