UserAgent Implement Method on JavaFX WebEngine


Question

How can i implement useragent header in JavaFX webbrowser?

Thanks.

1
4
12/10/2012 3:02:03 PM

Accepted Answer

Prior to JavaFX 8(included in JDK8), this functionality was not present in JavaFX.

The user agent string for WebEngine is configurable in JDK8.

JDK8 is now available.

See the feature request Allow setting custom user-agent for more details.

2
9/22/2014 9:29:58 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon