From: Yves <yv...@gm...> - 2017-11-22 07:41:35
|
Hi Ronald, great work, thank you very much... I wasn´t expecting that and helped myself meanwhile by modifying the WebSocketPolicy-Class. But I just pulled the snapshot and tried and can confirm, that it works. HTMLUnit is a great help for many of the tasks I have to do. Thanks a lot for supporting this, your work is highly appreciated!! Yves Am 21.11.2017 um 20:45 schrieb Ronald Brill: > Hi Yves, > >> I am using HTMLUnit (latest Version 2.28 from maven). >> >> The page I am retrieving makes extensive usage of javascript and has a lot of dynamic content. >> The page also uses a WebSocket Connection and here sometimes it my occur, that the server sends messages that exceed a 64k limit. >> >> If this happens, I receive the following exception and after this the page "is broken", meaning, it doesn?t update dynamic contents etc.: >> >> org.eclipse.jetty.websocket.api.MessageTooLargeException: Text message size [82491] exceeds maximum size [65536] >> at org.eclipse.jetty.websocket.api.WebSocketPolicy.assertValidTextMessageSize(WebSocketPolicy.java:140) >> >> Is there a way to increase the pre-set maximum size? > Have just added four new configuration options. Please use the latest Snapshot build from maven (2.29-SNAPSHOT). > For changing the limits do something like > webClient.getOptions().setWebSocketXXX() > And please report if this does the job for you. > > Hope that helps and HtmlUnit does a nice job for you. > > > RBRi > -------------------------- > WETATOR > Smart web application testing > http://www.wetator.org > |