I'm using htmlunit to make some tests but I don't want them to use all my available bandwidth. How can I set a limit on upload/download speed?
I have found I can get an InputStream
from a WebResponse
. I think this could be used to limit download speed, if I wait some time between reads. But what about upload? I have found no equivalent OutputStream
in the API. Thanks.