I've run in an issue with connection timeout in the WebView. Requesting the URL in a browser will result in an answer, however it may take some time. Running the same request from the WebView results in a connection timeout.
There are some points I would like to have your advice:
-
What is the connection timeout for loading a page through the WebView (from issuing the request webEngine.load(url) to the state change failed passes about 40s). The Request in a browser takes about 10s.
-
Can I manipulate the underlying connection of the WebView (as suggested at
java - How to connect to an HTTPS URL from a JavaFX application - Stack Overflow
)
-
Can I set the connection timeout on the WebEngine/WebKit or per request?
-
Is there an issue targeting this?
Likewise I would be interested to get a handle on the connection so I can evaluate the header data to retrieve useful information (like response was a PDF which cannot be rendered in the WebView)