T0DDY

Results 7 comments of 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()` ![pipeline](https://user-images.githubusercontent.com/16252328/97515754-afe56000-19cc-11eb-9c41-2f13a328c204.png) ![pipeline2](https://user-images.githubusercontent.com/16252328/97515758-b1af2380-19cc-11eb-9bd0-9c1671d827af.png)...

> > @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