Hi,
Followed by the test "testThatInterceptorsCanReadResponseBodies"
I'd like to store the response body of a GET method in addResponseInterceptor
My code is like: body = response.getEntry().getResponse().getContent().getText();
What's weird is that for the POST request, this line of code works fine but for a GET request it returns null, and the getBodysize() returns 0.
So I'd like to know if I'm wrong about the method I use to get the response body? If i open IE manually to watch the GET method that I want, it works fine I can see its content, however the type of it is "binary/octet-stream" but not the "text". Could this be the reason that I cannot read it in Selenium?
I'm using WIN7 32 IE11.
Thanks in advance.