FROM : Michael Becker
DATE : Fri Jul 14 18:41:54 2006
Am 14.07.2006 um 04:27 schrieb Chris Suter:
> For your particular problem, you need to use the curl_multi API.
>
I actually solved the problem by using my progress callback function
with the curl_easy API. If I make it return a non-zero value, the
upload will stop.
> Out of interest, why couldn't you use NSURLConnection. I've not
> tried it, but couldn't you hook into NSInputStream to monitor how
> much data has been loaded? I'd have thought this might work
> although only on 10.4.
Well, the "10.4-only" would be the reason why I cannot do that. I
haven't yet looked into NSInputStream, but honestly, I am quite happy
with my curl-solution. Furthermore, I still think that Apple should
provide callback (i.e. delegate) functions for uploading. They do for
downloading, after all.
Regards,
Michael
DATE : Fri Jul 14 18:41:54 2006
Am 14.07.2006 um 04:27 schrieb Chris Suter:
> For your particular problem, you need to use the curl_multi API.
>
I actually solved the problem by using my progress callback function
with the curl_easy API. If I make it return a non-zero value, the
upload will stop.
> Out of interest, why couldn't you use NSURLConnection. I've not
> tried it, but couldn't you hook into NSInputStream to monitor how
> much data has been loaded? I'd have thought this might work
> although only on 10.4.
Well, the "10.4-only" would be the reason why I cannot do that. I
haven't yet looked into NSInputStream, but honestly, I am quite happy
with my curl-solution. Furthermore, I still think that Apple should
provide callback (i.e. delegate) functions for uploading. They do for
downloading, after all.
Regards,
Michael
| Related mails | Author | Date |
|---|---|---|
| Michael Becker | Jul 14, 03:35 | |
| Nir Soffer | Jul 14, 04:23 | |
| Chris Suter | Jul 14, 04:27 | |
| Cem Karan | Jul 14, 13:01 | |
| Michael Becker | Jul 14, 18:41 |






Cocoa mail archive

