problem Custom tracking progress #216

Open
mobilehub opened this Issue Jun 27, 2011 · 1 comment

Projects

None yet

2 participants

@mobilehub

HI,

If I set the proxy of the request, I want to custom download tracking progress,

  • (void)request:(ASIHTTPRequest *)request didReceiveBytes:(long long)bytes will be called more 2 times than normal, They are about the Proxy Authentication Required, the status code is 407.

So, I will check the header status code in the delegate function, and calculate the accurate progress. Is the right way?

@pokeb
Owner

Sorry for the delay in getting back to you!

I guess that sounds like a reasonable approach. Ideally ASIHTTPRequest would mask all the proxy stuff from you, but I'm afraid it doesn't at the moment.

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