Re: File Uploading to HTTP server using CFHTTPMessage API fails
Re: File Uploading to HTTP server using CFHTTPMessage API fails
- Subject: Re: File Uploading to HTTP server using CFHTTPMessage API fails
- From: Jens Alfke <email@hidden>
- Date: Thu, 12 Jan 2012 21:29:06 -0800
On Jan 12, 2012, at 9:24 PM, DEBAPRIO BANIK wrote: I have considered using the NSURLConnection but i was unable to find any corresponding client API's for CFHTTPMessage class.
That’s NSURLRequest. Maybe you overlooked the HTTP methods of that class? They’re declared in a separate category … scroll farther down in NSURLRequest.h and you’ll see them. To upload a large file you’d want to set the HTTPBodyStream property to an NSInputStream opened on the file you’re uploading.
There shouldn’t be any need to use CFHTTPMessage in this kind of code. The only time I’ve ever had to use it was when implementing an HTTP *server*. All the client related APIs are available in Cocoa.
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden