Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to Implement Streamed HTTP Request



Hi,All

I want use CFNetwork to implement streamed http post request.For
example send 1024 bytes to HTTPS server every 1 second.

I try use
extern CFReadStreamRef
CFReadStreamCreateForStreamedHTTPRequest(
  CFAllocatorRef     alloc,
  CFHTTPMessageRef   requestHeaders,
  CFReadStreamRef    requestBody)

This function seems fit for data of requestBody is ready for send
before call this function. (like requestBody from a file, or memory),
can't be add any data to requestBody after it been called.

how can I send 100 memory bufferes to http server use one streamed
http request?of course can NOT merge 100 memory bufferes to one big
buffer and send it.

Thanks
-Tommy
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.