Skip to content
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

使用sample 打印respond body 不全,二次回调的body也是第一次里头的部分内容,并不是新的,很奇怪, 是否是我打印body的方法有问题 #68

Open
jinmaotowne opened this issue May 25, 2020 · 6 comments

Comments

@jinmaotowne
Copy link

使用sample 打印respond body 不全,二次回调的body也是第一次里头的部分内容,并不是新的,很奇怪, 是否是我打印body的方法有问题

@jinmaotowne
Copy link
Author

            HttpBodyInputStream his = null;
            Reader reader = null;
            his = new HttpBodyInputStream(body);
            try {
                reader = new InputStreamReader(new GZIPInputStream(his));
            } catch (Exception ex) {
                reader = new InputStreamReader(his);
            }
            BufferedReader in = new BufferedReader(reader);
            StringBuffer buffer = new StringBuffer();
            String line = " ";
            while ((line = in.readLine()) != null) {
                buffer.append(line);
            }

@wordgege
Copy link

我也遇到了這個問題請問要如何解決返回數據過大導致内容不全的問題

@wordgege
Copy link

@MegatronKing 請賜教謝謝

@qkmaosjtu
Copy link

@MegatronKing 請賜教謝謝

包的数据过大的话分成了好几个index,我也奇怪作者为什么这么做

@wordgege
Copy link

@MegatronKing 請賜教謝謝

包的数据过大的话分成了好几个index,我也奇怪作者为什么这么做

我解决了这个问题 我封装了curl 通过jni调用curl发送请求通过netbare拦截返回数据达到数据修改目的

@fr0zenrain
Copy link

same issue,how did i know the response done and get full body?thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants