-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to listen to network events? #368
Comments
it's |
|
Where can I find a list of apis such as: method:Network.responseReceived |
https://chromedevtools.github.io/devtools-protocol/tot/Network/ |
I still do not see the response by implementing the following code.
|
@professional-sourav you need to start listening for the event before navigating. |
THANK YOU FOR THAT GREAT PROJECT my project is simply listening to all the requests and search for requests that have the type(media or mp4) so is that achievable? thanks in advance and sorry as this is my first comment on github |
@enricodias One more thing. If I need to get the response of non HTML request, like js, css, images, etc, how can I get that? For now, I am calling the $page->getHtml(), to get the html of the page. But the page contains css, js I have checked with Network.responseReceived method, but it's missing the body parameter on the response but I am getting headers and other data. |
To get body content of request:
|
@professional-sourav using |
In Pupeteer and Playwright, It is possible to listen to network events (requests and responses).
https://playwright.dev/docs/network
How do we do the same thing in chrome-php? I tried the following 2 methods but none of them worked.
OR;
The text was updated successfully, but these errors were encountered: