10

How to pass the HTTP Headers like

"Accept-Language", "Accept", "Accept-Encoding" to WebEngine in JavaFX? i have tried the method as specified in Setting a cookie using JavaFX's WebEngine/WebView, but it doesn't work. is there any API that is being exposed in Java 8 for achieving this? Pls suggest.

5

1 Answer 1

2

Since JDK 8u60 the default locale of the application is automatically added to the "Accept-Language" header as the first option. This may help in some cases although it would of course be better to be able to set all these headers explicitly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.