DevTools: Network.getResponseBody shoult return the same bytes that were sent from server |
|||
Issue descriptionThe protocol's method Network.getResponseBody returns a string that is decoded according to the Content-Type response header. However, if the content-type is set wrongly, the response body is decoded incorrectly. It would be helpful to get a raw response body via protocol. Can we either: - modify Network.getResponseBody to return base64-encoded string for non-ascii responses - add another method Network.getRawResponseBody that always returns base64-encoded results? This surfaced in the PPTR project: https://github.com/GoogleChrome/puppeteer/issues/795
,
Dec 29
,
Jan 7
It sounds like the way we get raw response data could change after the network service migration, and it also sounds like adding a new method with the binary data type would be preferred. I will reassess this after more is done with network service.
,
Jan 7
All in for a new method! ❤️ |
|||
►
Sign in to add a comment |
|||
Comment 1 by supp...@neumetrix.com
, Mar 21 2018