How to inspect the response body using WebExtensions WebRequest API?
Asked Answered
F

1

7

I am writing a browser extension using modern Browsers generic WebExtensions framework.

I try to figure out, how I can get (read) access or a copy of the data of an http response send by a regular server utilizing the stable WebRequest API. Firefox's and Chrome's documentations do not offer a convenient way of achieving this. Is it even possible within the WebExtensions framework?

Thanks in advance.

Fumarole answered 1/12, 2016 at 15:18 Comment(0)
R
4

No, it's not possible with WebRequest API.

It's been asked for a long time, though, at least for Chrome.

Rosinweed answered 1/12, 2016 at 23:1 Comment(2)
The Firefox bug for this is Bug 1255894 - Support a webRequest.onResponseData event to filter HTTP response bytes as they comeWindcheater
@Windcheater that's just filtering, I was hoping there might be some way to retrieve the entire response body/headers/etc. Is there still no way?Terrorize

© 2022 - 2024 — McMap. All rights reserved.