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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.