• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File Uploading to HTTP server using CFHTTPMessage API fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >File Uploading to HTTP server using CFHTTPMessage API fails (From: DEBAPRIO BANIK <email@hidden>)
 >Re: File Uploading to HTTP server using CFHTTPMessage API fails (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: File Uploading to HTTP server using CFHTTPMessage API fails
  • Next by Date: Re: File Uploading to HTTP server using CFHTTPMessage API fails
  • Previous by thread: Re: File Uploading to HTTP server using CFHTTPMessage API fails
  • Next by thread: Re: File Uploading to HTTP server using CFHTTPMessage API fails
  • Index(es):
    • Date
    • Thread