AFNetworking/AFNetworking — pull request #537 by lxcid (2012-09-24 19:50:47+00:00)
Title: This is a working version of multipart streaming.

- Fixed missing CRLF after header string.
- Fixed not traversing through the buffer while reading.
- Fixed content length of body stream are incorrect when attempts to finalize the multipart form data due to boundary settings not set yet.
- Create a method named `setInitialAndFinalBoundaries` that attempts to reset all HTTP body parts boundary settings first before setting the initial and final boundaries.

Tested successfully on my own codes that does photo uploading to Flickr using `appendPartWithFileData:name:fileName:mimeType:`. I have not tried uploading from file URL but don't foresee any issue.

==========

Hi mattt,

I am the guy from #536.

After you drop a hint about the `NSInputstream` subclass of `AFMultipartFormData`, I read through #418 and check out the branch AFNetworking/AFNetworking@experimental-refined-streaming.

I have to say, awesome work on the `NSInputStream` subclass and getting working. I have been trying it for a few times before I finally gave up previously. I really enjoy reading up your codes and your solution. :)

I tried to help out a little and I think I got it working. :D

I manage to upload photos to Flickr with minor adjustment to my codes.

I hope this is good for you. Feel free to make any changes.

Cheers! :)