The default temporary folder location for all web responses that are larger than 500kb can be overridden via the system parameter "java.io.tmpdir".
If we need to only change the default for Htmlunit while keeping the temp folder unchanged, we can't do it.
A solution would be to add another webclient set option that would override this, and then use that value in the create temp file call below as an additional argument.
|
final File file = File.createTempFile("htmlunit", ".tmp"); |
Would help a lot if you need to customize the folder. Would help with detecting and leftover files a well, as its easier to notice if you redirect the temp files to a folder dedicated to it.
The default temporary folder location for all web responses that are larger than 500kb can be overridden via the system parameter "java.io.tmpdir".
If we need to only change the default for Htmlunit while keeping the temp folder unchanged, we can't do it.
A solution would be to add another webclient set option that would override this, and then use that value in the create temp file call below as an additional argument.
htmlunit/src/main/java/org/htmlunit/HttpWebConnection.java
Line 780 in dfb0d9c
Would help a lot if you need to customize the folder. Would help with detecting and leftover files a well, as its easier to notice if you redirect the temp files to a folder dedicated to it.