[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-openjfx-dev
Subject: Question regarding WebView
From: dprutean <pruteanu () gmail ! com>
Date: 2019-05-08 19:44:34
Message-ID: CAFHJFzRR5CEufJvTrOhKa7WoGH9C0Hj5AAZiaQ37w_kxBwQhDA () mail ! gmail ! com
[Download RAW message or body]
Hi,
I tried to get an answer on this on StackOverflow, but without success.
I am looking to intercept WebView HttpRequests and list the POST, PUT or
GET parameters for all outgoing requests. I know about Firebug, but I want
more: to get this data from the Java code.
I was thinking on solutions using:
1. Shared objects between WebView and JavaFx using:
final JSObject jsWindowObject = (JSObject)
webView.getEngine().executeScript("window");
jsWindowObject.setMember("cssProperty", cssProperty);
and then execute some JavaScript which would register a listener for fetch
events. I didn't find the right code.
2. Write a kind of proxy.
Do you know how this can be achived ?
Thank you,
Dragos
https://stackoverflow.com/questions/55994963/how-to-debug-javafx-webview-outgoing-requests?noredirect=1#comment98674890_55994963
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic