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

Is there any way to insert some log code to dump the HTTP packet body before request or after response? #205

Closed
passos opened this issue Apr 2, 2013 · 2 comments
Assignees
Milestone

Comments

@passos
Copy link

passos commented Apr 2, 2013

When I am using this library, sometime I need to dump the HTTP packet body's content in log. Currently onStart() seems a good place, however there is no related object passing into this method. And some headers is processed by HttpRequestInterceptor. That means these header will only be insert into the packet when do the request.
I am wondering is there any other mechanism to do this?

@ghost ghost assigned smarek Oct 14, 2013
@smarek
Copy link
Member

smarek commented Oct 14, 2013

Nice idea @passos , I'll look into it for sure.

@fineswap fineswap reopened this Apr 29, 2014
@gongzunpan
Copy link

印象笔记无法提交笔记,原因如下:

本月帐户上传流量已经达到上限。

原消息详情:
来自:Noor Dawod <notifications@github.com>
发送到:gongzunpan.e099425@m.yinxiang.com
全部收件人:loopj/android-async-http <android-async-http@noreply.github.com>
主题:Re: [android-async-http] Is there any way to insert some log code to dump the HTTP packet body before request or after response? (#205)

为了防止邮件过多,接下来的360分钟内,你将不会收到报错回复。

升级到印象笔记高级帐户,可以发送的邮件数量将从50封提升到200封。
https://app.yinxiang.com/Checkout.action?origin=email%2Dcommerce

  • 印象笔记团队

@smarek smarek removed the wontfix label May 2, 2014
@smarek smarek removed the moderate label May 30, 2014
@smarek
Copy link
Member

smarek commented May 30, 2014

Sorry @passos but I've tried to find some easy way, and I haven't found any. I'm closing this issue, because network debugging is in my opinion out of this library scope, so unless someone finds a way and gives us Pull Request, there won't be such function in core library.

@smarek smarek closed this as completed May 30, 2014
@gongzunpan
Copy link

印象笔记无法提交笔记,原因如下:

本月帐户上传流量已经达到上限。

原消息详情:
来自:Marek Sebera <notifications@github.com>
发送到:gongzunpan.e099425@m.yinxiang.com
全部收件人:loopj/android-async-http <android-async-http@noreply.github.com>; zunpan <gongzunpan@gmail.com>
主题:Re: [android-async-http] Is there any way to insert some log code to dump the HTTP packet body before request or after response? (#205)

为了防止邮件过多,接下来的360分钟内,你将不会收到报错回复。

升级到印象笔记高级帐户,可以发送的邮件数量将从50封提升到200封。
https://app.yinxiang.com/Checkout.action?origin=email%2Dcommerce

  • 印象笔记团队

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

No branches or pull requests

3 participants