-
Notifications
You must be signed in to change notification settings - Fork 95
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
(Question) How to view contents of request #25
Comments
I have found a (seemingly) working solution using a little more experimentation and reading. I'm sure I won't be the only one that has this question, so I'll include what I came up with here. I'm not sure what the implications of
(Just as a side note, the reason I am having to check for LastHttpContent might be because I set the buffer sizes to 0 in my default interface, this will require further digging when I have more time: stackoverflow citation) |
In It is important to set Javadoc: Indicate how many (if any) bytes to buffer for incoming HttpResponses. A value of 0 or less indicates that no buffering should happen and that messages will be passed to the HttpFilters response filtering methods chunk by chunk. A positive value will cause LittleProxy to try an create a FullHttpResponse using the data received from the server, with its content already decompressed (in case the server was compressing it). If the response size exceeds the maximum buffer size, the response will fail. I hope this helps. See the description of filters source and filters in #32 too. |
First off, thanks for your time. I'm sure you're busy.
I'm trying to debug some restful applications speaking to each other, and I've been trying to setup your mitm service to do so.
Reading your documentation I can get to the point where I dump the headers of a given request, but I can't figure out how to view the body of the request.
Here's what I have so far:
and a simple main method to run the application:
I've been digging into the
ChannelHandlerContext
via debugging and some of the javadoc, and my initial assumption about the body being located here appears to be false. So really my question, I suppose, is how do I access the request body given that it doesn't appear to be present in either the request or context object?The text was updated successfully, but these errors were encountered: