chrome-devtools-java-client
chrome-devtools-java-client copied to clipboard
/json/new PUT instead of GET
Since version 111+ /json/get will not accept GET request, which is used currently by library, which imho disallows the way to open new tab. PUT method should be used.
Even I am facing the same issue
same here
Probably the lib needs to do something like this https://github.com/GoogleChrome/lighthouse/pull/14063/files
Had same issue. I should probably create a pull request, but put a fix in fork here:
https://github.com/screamingfrog/chrome-devtools-java-client/commit/53787c6ee2cf6f892b3115e68bc462d2d9d72403
a PR already exists
@JAndrassy: Thanks saved me some time! It's interesting that the PR blindly changes all requests to PUT. The documentation (https://chromedevtools.github.io/devtools-protocol/) seems to suggest only the /json/new?{url} should use the PUT method. Obviously works though, and makes the code a lot cleaner than my solution!