Skip to content

Suggestion - allow overriding temporary file location #605

@skyhirider

Description

@skyhirider

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions