pokeb / asi-http-request

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone
http://allseeing-i.com/ASIHTTPRequest
Other
5.78k stars 1.41k forks source link

charset not useful when Content-Type is multipart/form-data #374

Open guange2015 opened 10 years ago

newmanw commented 10 years ago

Why has this not been pulled into the baseline?

jogu commented 10 years ago

@newmanw Probably because ASIHTTPRequest is pretty much dead.

I think I'm possibly the only person still merging things (and I don't have any projects left myself that use ASIHTTPRequest), and I'm definitely trying to veer towards not breaking things. If someone could explain why charset isn't useful / what removing it fixes / why it was added originally that might help twist my arm into looking at it.

I'm also not sure about adding a podspec - ASIHTTPRequest really shouldn't be used in new projects.

newmanw commented 10 years ago

New to iOS, is there a good alternative? Seems like async http should be built into core iOS (and maybe it is).

jogu commented 10 years ago

It is :-) NSURLConnection is the underlying iOS/Mac class. A large number of people use AFNetworking, which is a wrapper around NSUrlConnection etc, but there are other wrappers too.

newmanw commented 10 years ago

Perfect thanks for your help! i don't think there is a need to pull that in. I modified my copy of the code locally in my project to work. Long term goal is to use the core libs or a non-dead framework.