T0DDY
T0DDY
@monkeyWie I can intercept the request without sending the original request to server by above code you have provided. But how can I achieve the same function using **_FullRequestIntercept_** ?...
> @T0DDY You can use `pipeline` arg such as `pipeline.getClientChannel()`. @monkeyWie I have reviewed the class `HttpProxyInterceptPipeline` , but I'm afraid there is no such function like `pipeline.getClientChannel()`  ...
> > @T0DDY You can use `pipeline` arg such as `pipeline.getClientChannel()`. > > @monkeyWie I have reviewed the class `HttpProxyInterceptPipeline` , but I'm afraid there is no such function like...
> @T0DDY This my mistake, you can also add a `HttpProxyIntercept` to interrupt the request, like this: > > ```java > pipeline.addLast(new HttpProxyIntercept(){ > @Override > public void beforeRequest(Channel clientChannel,...
> I tested ok, that pipeline like this: > > ``` > pipeline.addLast(FullRequestIntercept) > pipeline.addLast(HttpProxyIntercept) > pipeline.addLast(FullResponseIntercept) > ``` > > so can you try again following the above? for...
I have test it carefully, but no luck with the result: `pipeline.addLast(FullRequestIntercept) pipeline.addFirst(HttpProxyIntercept) pipeline.addFirst(FullResponseIntercept)` the `HttpProxyIntercept` will not be hit, do you have any idea? @monkeyWie
@nsioo 你的response header 里面: Content-Type: application/json; charset=utf-8 试试 : Log.e("------mitm res2-----", httpResponse.content().toString(Charset.forName("UTF-8")) ); 可能解决你的问题。 cc @monkeyWie