-
Notifications
You must be signed in to change notification settings - Fork 240
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
Is there a way to get the raw bytes of a response? #12
Comments
You should first listen Network.responseReceived event to find requestId and then invoke Network.getResponseBody command to get response body. If you need Java based solution, please review this sample code. Finally do not forget to call Network.enable command to listen Network events. |
Thanks @ui4j, but unfortunately this isn't exactly what I need. {
"body": "",
"base64Encoded": true
} I'm using chrome remote interface but it doesn't seem to be a problem with it :( |
AFAIK we don't have support for this now and no immediate plans to implement. cc @allada Also unimplemented, but if the protocol exposed a way to set a proxy, then you could run a network proxy to grab these bytes. In the future, it's possible a |
For example, if the content is gzipped is there any way I can access the raw bytes? getResponseBody only seems to return a string and other events like
dataReceived
, etc. don't seem to have that data :(The text was updated successfully, but these errors were encountered: